Skip to content
Snippets Groups Projects
Commit d398df2f authored by Lukas Stadler's avatar Lukas Stadler
Browse files

put attribute copying in BinaryArithmeticNode into @SlowPath

parent dfde06bd
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
package com.oracle.truffle.r.nodes.binary;
import com.oracle.truffle.api.*;
import com.oracle.truffle.api.CompilerDirectives.SlowPath;
import com.oracle.truffle.api.dsl.*;
import com.oracle.truffle.api.frame.*;
import com.oracle.truffle.api.utilities.*;
......@@ -489,6 +490,7 @@ public abstract class BinaryArithmeticNode extends BinaryNode {
// implementation
@SlowPath
private void copyAttributes(RVector ret, RAbstractVector left, RAbstractVector right) {
int leftLength = left.getLength();
int rightLength = right.getLength();
......@@ -498,6 +500,7 @@ public abstract class BinaryArithmeticNode extends BinaryNode {
ret.copyNamesFrom(leftLength == length ? left : right);
}
@SlowPath
private void copyAttributesSameLength(RVector ret, RAbstractVector left, RAbstractVector right) {
ret.copyRegAttributesFrom(right);
ret.copyRegAttributesFrom(left);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment