Skip to content
Snippets Groups Projects
Commit e0aa3b2b authored by stepan's avatar stepan
Browse files

DoCall: add missing TruffleBoundary and set correct type of the args promises (supplied)

parent 924fcbf7
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,7 @@ public abstract class DoCall extends RBuiltinNode.Arg4 implements InternalRSynta
@TruffleBoundary
private RPromise createLanguagePromise(MaterializedFrame promiseFrame, RLanguage arg) {
Closure closure = languagesClosureCache.getOrCreatePromiseClosure(arg.getRep());
return RDataFactory.createPromise(PromiseState.Default, closure, promiseFrame);
return RDataFactory.createPromise(PromiseState.Supplied, closure, promiseFrame);
}
@TruffleBoundary
......@@ -283,7 +283,8 @@ public abstract class DoCall extends RBuiltinNode.Arg4 implements InternalRSynta
return new SlowPathExplicitCall();
}
public Object execute(VirtualFrame evalFrame, RCaller caller, RFunction func, RArgsValuesAndNames args) {
@TruffleBoundary
public Object execute(MaterializedFrame evalFrame, RCaller caller, RFunction func, RArgsValuesAndNames args) {
slowPathCallNode = insert(RExplicitCallNode.create());
return slowPathCallNode.execute(evalFrame, func, args, caller);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment