changeset 22069:d683f82dac22

No need to adopt children
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Thu, 06 Aug 2015 17:29:43 +0200
parents fec8f8a61f6c
children a7ca9e9a1d51
files truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLFunctionLiteralNode.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLFunctionLiteralNode.java	Thu Aug 06 17:22:35 2015 +0200
+++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLFunctionLiteralNode.java	Thu Aug 06 17:29:43 2015 +0200
@@ -62,18 +62,15 @@
     @CompilationFinal private SLFunction cachedFunction;
     @CompilationFinal private SLContext cachedContext;
 
-    
-
     public SLFunctionLiteralNode(SourceSection src, String value) {
         super(src);
         this.value = value;
         contextNode = SLLanguage.INSTANCE.createFindContextNode0();
-        adoptChildren();
     }
 
     @Override
     public SLFunction executeGeneric(VirtualFrame frame) {
-        SLContext context = SLLanguage.INSTANCE.findContext(contextNode, frame);
+        SLContext context = SLLanguage.INSTANCE.findContext(contextNode);
         if (context != cachedContext) {
             CompilerDirectives.transferToInterpreterAndInvalidate();
             this.cachedContext = context;