Skip to content

Commit 9706391

Browse files
committed
Re-add public execute methods to allow external users.
1 parent 5f043a5 commit 9706391

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/foreign/ForeignObjectBuiltins.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,11 @@ protected Object doGeneric(Object callee, Object arguments, Object keywords) {
581581
@Builtin(name = __CALL__, minNumOfPositionalArgs = 1, takesVarArgs = true, takesVarKeywordArgs = true)
582582
@GenerateNodeFactory
583583
public abstract static class CallNode extends PythonBuiltinNode {
584+
public final Object executeWithArgs(VirtualFrame frame, Object callee, Object[] arguments) {
585+
return execute(frame, callee, arguments, PKeyword.EMPTY_KEYWORDS);
586+
}
587+
588+
public abstract Object execute(VirtualFrame frame, Object callee, Object[] arguments, PKeyword[] keywords);
584589

585590
/**
586591
* A foreign function call specializes on the length of the passed arguments. Any

0 commit comments

Comments
 (0)