Skip to content
Snippets Groups Projects
Commit dfde06bd authored by Gero Leinemann's avatar Gero Leinemann
Browse files

Fixed compilation issues for generic cases of RCallNode PIC

parent 9f3c79d9
No related branches found
No related tags found
No related merge requests found
......@@ -459,7 +459,10 @@ public abstract class RCallNode extends RNode {
}
@Override
@SlowPath
public Object execute(VirtualFrame frame, RFunction currentFunction) {
CompilerDirectives.transferToInterpreter();
if (lastCallTarget == currentFunction.getTarget() && lastMatchedArgs != null) {
// poor man's caching succeeded - same function: no re-match needed
Object[] argsObject = RArguments.create(currentFunction, getSourceSection(), lastMatchedArgs.doExecuteArray(frame), lastMatchedArgs.getNames());
......@@ -639,7 +642,7 @@ public abstract class RCallNode extends RNode {
@Override
@SlowPath
public Object execute(VirtualFrame frame, RFunction currentFunction) {
CompilerAsserts.neverPartOfCompilation();
CompilerDirectives.transferToInterpreter();
// Function and arguments may change every call: Flatt'n'Match on SlowPath! :-/
UnrolledVariadicArguments argsValuesAndNames = suppliedArgs.executeFlatten(frame);
......
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