# HG changeset patch # User Andreas Woess # Date 1439254855 -7200 # Node ID 4369b936c52001d16254ded0211134f3020ba78c # Parent ec8b73f156752e47203ed39945ee3b19a7c3bd2f SL: adopt FindContextNode as a child diff -r ec8b73f15675 -r 4369b936c520 graal/com.oracle.graal.truffle.test/src/com/oracle/graal/truffle/test/builtins/SLCallFunctionsWithBuiltin.java --- a/graal/com.oracle.graal.truffle.test/src/com/oracle/graal/truffle/test/builtins/SLCallFunctionsWithBuiltin.java Tue Aug 11 02:56:50 2015 +0200 +++ b/graal/com.oracle.graal.truffle.test/src/com/oracle/graal/truffle/test/builtins/SLCallFunctionsWithBuiltin.java Tue Aug 11 03:00:55 2015 +0200 @@ -37,11 +37,11 @@ public abstract class SLCallFunctionsWithBuiltin extends SLGraalRuntimeBuiltin { @Child private IndirectCallNode indirectCall = Truffle.getRuntime().createIndirectCallNode(); + @Child private Node findContextNode = SLLanguage.INSTANCE.createFindContextNode0(); @Specialization public SLNull runTests(VirtualFrame frame, String startsWith, SLFunction harness) { - Node n = SLLanguage.INSTANCE.createFindContextNode0(); - SLContext context = SLLanguage.INSTANCE.findContext0(n); + SLContext context = SLLanguage.INSTANCE.findContext0(findContextNode); boolean found = false; for (SLFunction function : context.getFunctionRegistry().getFunctions()) { if (function.getName().startsWith(startsWith) && getSource(function) == getSource(harness) && getSource(function) != null) {