Skip to content

Commit f405980

Browse files
committed
retain "call" for specific nodes
1 parent 081eb81 commit f405980

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/CodecsModuleBuiltins.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,10 @@ Object encode(Object str, @SuppressWarnings("unused") Object encoding, @Suppress
541541
@ArgumentClinic(name = "final", conversion = ArgumentClinic.ClinicConversion.Boolean, defaultValue = "false", useDefaultForNone = true)
542542
@GenerateNodeFactory
543543
public abstract static class CodecsDecodeNode extends PythonQuaternaryClinicBuiltinNode {
544-
public abstract Object execute(Object input, Object encoding, Object errors, Object finalData);
544+
545+
public final Object call(VirtualFrame frame, Object input, Object encoding, Object errors, Object finalData) {
546+
return execute(frame, input, encoding, errors, finalData);
547+
}
545548

546549
@Override
547550
protected ArgumentClinicProvider getArgumentClinic() {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/memoryview/MemoryViewBuiltins.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,11 @@ protected ArgumentClinicProvider getArgumentClinic() {
518518
@Builtin(name = "toreadonly", minNumOfPositionalArgs = 1)
519519
@GenerateNodeFactory
520520
public abstract static class ToReadonlyNode extends PythonUnaryBuiltinNode {
521+
522+
public final Object call(VirtualFrame frame, Object arg) {
523+
return execute(frame, arg);
524+
}
525+
521526
@Specialization
522527
PMemoryView toreadonly(PMemoryView self) {
523528
self.checkReleased(this);

0 commit comments

Comments
 (0)