Skip to content

Commit 769f3b7

Browse files
committed
fixes for upcoming DSL changes
1 parent bc8df05 commit 769f3b7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public String doO(Object x,
273273
return recursiveNode.executeObject(value);
274274
}
275275

276-
protected BinNode create() {
276+
protected static BinNode create() {
277277
return BuiltinFunctionsFactory.BinNodeFactory.create();
278278
}
279279
}
@@ -706,7 +706,7 @@ public Object getAttrFromObject(Object primary, String name, Object defaultValue
706706
}
707707

708708
@Specialization
709-
public Object getAttr(Object object, PString name, Object defaultValue) {
709+
public Object getAttr2(Object object, PString name, Object defaultValue) {
710710
return executeWithArgs(object, name.getValue(), defaultValue);
711711
}
712712

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ protected boolean isOvf(PInt value) {
516516
return value.getValue().compareTo(BigInteger.valueOf(Long.MAX_VALUE)) > 0;
517517
}
518518

519-
protected FactorialNode create() {
519+
protected static FactorialNode create() {
520520
return MathModuleBuiltinsFactory.FactorialNodeFactory.create();
521521
}
522522
}
@@ -588,7 +588,7 @@ public Object floor(Object value,
588588
return result;
589589
}
590590

591-
protected FloorNode create() {
591+
protected static FloorNode create() {
592592
return MathModuleBuiltinsFactory.FloorNodeFactory.create();
593593
}
594594
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/CExtNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Object runAbstractObject(PythonAbstractObject object,
344344
}
345345

346346
@Specialization(guards = {"isForeignObject(object)", "!isNativeWrapper(object)", "!isNativeNull(object)"})
347-
Object doPythonClass(TruffleObject object) {
347+
Object doPythonClass2(TruffleObject object) {
348348
return TruffleObjectNativeWrapper.wrap(object);
349349
}
350350

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/attributes/WriteAttributeToDynamicObjectNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ protected boolean doIndirect(DynamicObject dynamicObject, Object key, Object val
153153
}
154154

155155
@Specialization(guards = "!dynamicObject.getShape().isValid()")
156-
protected boolean defineDirect(DynamicObject dynamicObject, Object key, Object value) {
156+
protected boolean defineDirect2(DynamicObject dynamicObject, Object key, Object value) {
157157
CompilerDirectives.transferToInterpreter();
158158
dynamicObject.updateShape();
159159
return doIndirect(dynamicObject, key, value);

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/interop/PythonMessageResolution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ Object[] cached(Object[] arguments,
383383
}
384384

385385
@Specialization(replaces = "cached")
386-
Object[] cached(Object[] arguments) {
386+
Object[] generic(Object[] arguments) {
387387
Object[] convertedArgs = new Object[arguments.length];
388388
for (int i = 0; i < arguments.length; i++) {
389389
convertedArgs[i] = fromForeign.executeConvert(arguments[i]);

0 commit comments

Comments
 (0)