use of org.graalvm.compiler.truffle.common.TruffleCompilerOptions.TruffleOptionsOverrideScope in project graal by oracle.
the class SLCallWithOptionOverrideBuiltin method callWithOptionOverride.
@Specialization
public SLFunction callWithOptionOverride(SLFunction function, String name, Object value) {
TruffleOptionsOverrideScope scope = override(name, value);
OptimizedCallTarget target = ((OptimizedCallTarget) function.getCallTarget());
indirectCall.call(target, EMPTY_ARGS);
close(scope);
return function;
}
Aggregations