Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/nodes/expression/SLFunctionLiteralNode.java @ 22070:a7ca9e9a1d51
Removing VirtualFrame parameter. Documenting.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Thu, 06 Aug 2015 18:08:27 +0200 |
parents | d683f82dac22 |
children | dc83cc1f94f2 |
comparison
equal
deleted
inserted
replaced
22069:d683f82dac22 | 22070:a7ca9e9a1d51 |
---|---|
68 contextNode = SLLanguage.INSTANCE.createFindContextNode0(); | 68 contextNode = SLLanguage.INSTANCE.createFindContextNode0(); |
69 } | 69 } |
70 | 70 |
71 @Override | 71 @Override |
72 public SLFunction executeGeneric(VirtualFrame frame) { | 72 public SLFunction executeGeneric(VirtualFrame frame) { |
73 SLContext context = SLLanguage.INSTANCE.findContext(contextNode); | 73 SLContext context = SLLanguage.INSTANCE.findContext0(contextNode); |
74 if (context != cachedContext) { | 74 if (context != cachedContext) { |
75 CompilerDirectives.transferToInterpreterAndInvalidate(); | 75 CompilerDirectives.transferToInterpreterAndInvalidate(); |
76 this.cachedContext = context; | 76 this.cachedContext = context; |
77 this.cachedFunction = context.getFunctionRegistry().lookup(value); | 77 this.cachedFunction = context.getFunctionRegistry().lookup(value); |
78 } | 78 } |