MCPcopy Create free account
hub / github.com/dynjs/dynjs / call

Method call

src/main/java/org/dynjs/ir/IRJSFunction.java:107–119  ·  view source on GitHub ↗
(ExecutionContext context)

Source from the content-addressed store, hash-verified

105 }
106
107 @Override
108 public Object call(ExecutionContext context) {
109 // Allocate space for variables of this function and establish link to captured ones.
110 context.allocVars(scope.getLocalVariableSize(), capturedValues);
111
112 if (box.compilationInProgress || box.callCount >= 0) {
113 if (tryCompile(context)) {
114 return callJitted(context);
115 }
116 }
117
118 return Interpreter.execute(context, scope, instructions);
119 }
120
121 private Object callJitted(ExecutionContext context) {
122 return box.compiledFunction.call(context);

Callers

nothing calls this directly

Calls 5

tryCompileMethod · 0.95
callJittedMethod · 0.95
executeMethod · 0.95
allocVarsMethod · 0.80
getLocalVariableSizeMethod · 0.80

Tested by

no test coverage detected