use of org.finos.legend.pure.runtime.java.interpreted.natives.core.InstantiationContext in project legend-pure by finos.
the class FunctionExecutionInterpreted method start.
@Override
public CoreInstance start(CoreInstance function, ListIterable<? extends CoreInstance> arguments) {
this.cancelExecution.set(false);
Exception isException = null;
ExecutionSupport executionSupport = new ExecutionSupport();
try {
CoreInstance result = this.executeFunction(false, FunctionCoreInstanceWrapper.toFunction(function), arguments, new Stack<MutableMap<String, CoreInstance>>(), new Stack<MutableMap<String, CoreInstance>>(), VariableContext.newVariableContext(), null, VoidProfiler.VOID_PROFILER, new InstantiationContext(), executionSupport);
return result;
} catch (Exception ex) {
isException = ex;
throw ex;
} finally {
executionSupport.executionEnd(isException);
}
}
Aggregations