< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/nodes/ArrayEqualsNode.java
Print this page
rev 56282 : [mq]: graal
*** 230,245 ****
Value result = gen.getLIRGeneratorTool().emitForeignCall(linkage, null, gen.operand(array1), gen.operand(array2), gen.operand(length));
gen.setResult(this, result);
return;
}
}
!
! int constantLength = -1;
! if (length.isConstant()) {
! constantLength = length.asJavaConstant().asInt();
! }
! Value result = gen.getLIRGeneratorTool().emitArrayEquals(kind, gen.operand(array1), gen.operand(array2), gen.operand(length), constantLength, false);
gen.setResult(this, result);
}
@Override
public LocationIdentity getLocationIdentity() {
--- 230,240 ----
Value result = gen.getLIRGeneratorTool().emitForeignCall(linkage, null, gen.operand(array1), gen.operand(array2), gen.operand(length));
gen.setResult(this, result);
return;
}
}
! Value result = gen.getLIRGeneratorTool().emitArrayEquals(kind, gen.operand(array1), gen.operand(array2), gen.operand(length), false);
gen.setResult(this, result);
}
@Override
public LocationIdentity getLocationIdentity() {
< prev index next >