Skip to content

Commit 9b92006

Browse files
committed
[GR-14044] Fix wrong replace declarations.
PullRequest: graalpython/414
2 parents c9bf35c + 1d5ae64 commit 9b92006

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ Object doUnpackLong(long start, long stop, long step, long length) {
14301430
}
14311431

14321432
@Specialization(replaces = {"doUnpackLong", "doUnpack"})
1433-
Object doUnpackLongOvf(long start, long stop, long step, long length) {
1433+
Object doUnpackLongOvf0(long start, long stop, long step, long length) {
14341434
try {
14351435
PSlice tmpSlice = factory().createSlice(PInt.intValueExact(start), PInt.intValueExact(stop), PInt.intValueExact(step));
14361436
SliceInfo actualIndices = tmpSlice.computeIndices(length > Integer.MAX_VALUE ? Integer.MAX_VALUE : PInt.intValueExact(length));
@@ -1440,8 +1440,8 @@ Object doUnpackLongOvf(long start, long stop, long step, long length) {
14401440
}
14411441
}
14421442

1443-
@Specialization(replaces = {"doUnpackLongOvf"})
1444-
Object doUnpackLongOvf(Object start, Object stop, Object step, Object lengthObj,
1443+
@Specialization(replaces = {"doUnpackLongOvf0"})
1444+
Object doUnpackLongOvf1(Object start, Object stop, Object step, Object lengthObj,
14451445
@Cached("createOverflow()") CastToIndexNode castToIndexNode,
14461446
@Cached("create()") IsBuiltinClassProfile profile,
14471447
@Cached("create()") SliceLiteralNode sliceLiteralNode) {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/TypeBuiltins.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,24 +230,24 @@ protected Object doItUnboxedIndirect(VirtualFrame frame, @SuppressWarnings("unus
230230
}
231231

232232
@Specialization(limit = "getCallSiteInlineCacheMaxDepth()", guards = {"self == cachedSelf"})
233-
protected Object doIt(VirtualFrame frame, @SuppressWarnings("unused") PythonAbstractClass self, Object[] arguments, PKeyword[] keywords,
233+
protected Object doIt0(VirtualFrame frame, @SuppressWarnings("unused") PythonAbstractClass self, Object[] arguments, PKeyword[] keywords,
234234
@Cached("self") PythonAbstractClass cachedSelf) {
235235
return op(frame, cachedSelf, arguments, keywords, true);
236236
}
237237

238-
@Specialization(replaces = "doIt")
239-
protected Object doItIndirect(VirtualFrame frame, PythonAbstractClass self, Object[] arguments, PKeyword[] keywords) {
238+
@Specialization(replaces = "doIt0")
239+
protected Object doItIndirect0(VirtualFrame frame, PythonAbstractClass self, Object[] arguments, PKeyword[] keywords) {
240240
return op(frame, self, arguments, keywords, true);
241241
}
242242

243243
@Specialization(limit = "getCallSiteInlineCacheMaxDepth()", guards = {"self == cachedSelf"})
244-
protected Object doIt(VirtualFrame frame, @SuppressWarnings("unused") PythonNativeObject self, Object[] arguments, PKeyword[] keywords,
244+
protected Object doIt1(VirtualFrame frame, @SuppressWarnings("unused") PythonNativeObject self, Object[] arguments, PKeyword[] keywords,
245245
@Cached("self") PythonNativeObject cachedSelf) {
246246
return op(frame, PythonNativeClass.cast(cachedSelf), arguments, keywords, true);
247247
}
248248

249-
@Specialization(replaces = "doIt")
250-
protected Object doItIndirect(VirtualFrame frame, PythonNativeObject self, Object[] arguments, PKeyword[] keywords) {
249+
@Specialization(replaces = "doIt1")
250+
protected Object doItIndirect1(VirtualFrame frame, PythonNativeObject self, Object[] arguments, PKeyword[] keywords) {
251251
return op(frame, PythonNativeClass.cast(self), arguments, keywords, true);
252252
}
253253

0 commit comments

Comments
 (0)