use of org.graalvm.compiler.truffle.test.nodes.StringHashCodeNonFinalNode in project graal by oracle.
the class SimplePartialEvaluationTest method intrinsicStringHashCodeNonFinal.
@Test
public void intrinsicStringHashCodeNonFinal() {
/*
* The intrinsic for String.hashcode() does not trigger on non-constant strings, so the
* method String.hashCode() must be inlined during partial evaluation (so there must not be
* an invoke after partial evaluation).
*/
FrameDescriptor fd = new FrameDescriptor();
AbstractTestNode result = new StringHashCodeNonFinalNode("*");
assertPartialEvalNoInvokes(new RootTestNode(fd, "intrinsicStringHashCodeNonFinal", result));
}
Aggregations