File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/frame Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 55
55
import com .oracle .truffle .api .Truffle ;
56
56
import com .oracle .truffle .api .frame .Frame ;
57
57
import com .oracle .truffle .api .nodes .Node ;
58
+ import com .oracle .truffle .api .nodes .RootNode ;
58
59
import com .oracle .truffle .api .source .SourceSection ;
59
60
60
61
public final class PFrame extends PythonBuiltinObject {
@@ -298,7 +299,12 @@ public RootCallTarget getTarget() {
298
299
299
300
@ TruffleBoundary
300
301
private static RootCallTarget createCallTarget (Node location ) {
301
- return Truffle .getRuntime ().createCallTarget (location .getRootNode ());
302
+ RootNode rootNode = location .getRootNode ();
303
+ RootCallTarget ct = rootNode .getCallTarget ();
304
+ if (ct == null ) {
305
+ ct = Truffle .getRuntime ().createCallTarget (rootNode );
306
+ }
307
+ return ct ;
302
308
}
303
309
304
310
public Object [] getArguments () {
You can’t perform that action at this time.
0 commit comments