Skip to content

Commit 5e259d4

Browse files
committed
Use a dispatched library
1 parent 381ae67 commit 5e259d4

File tree

1 file changed

+4
-4
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints

1 file changed

+4
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ints/IntBuiltins.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,17 +2416,17 @@ Object fromPTuple(VirtualFrame frame, Object cl, PTuple tuple, String byteorder,
24162416
}
24172417

24182418
// rest objects
2419-
@Specialization
2419+
@Specialization(limit = "1")
24202420
Object fromObject(VirtualFrame frame, Object cl, PythonObject object, String byteorder, @SuppressWarnings("unused") PNone signed,
24212421
@Shared("ctxRef") @CachedContext(PythonLanguage.class) ContextReference<PythonContext> ctxRef,
2422-
@CachedLibrary(limit = "1") PythonObjectLibrary dataModelLibrary) {
2422+
@CachedLibrary("object") PythonObjectLibrary dataModelLibrary) {
24232423
return fromObject(frame, cl, object, byteorder, false, ctxRef, dataModelLibrary);
24242424
}
24252425

2426-
@Specialization
2426+
@Specialization(limit = "1")
24272427
Object fromObject(VirtualFrame frame, Object cl, PythonObject object, String byteorder, boolean signed,
24282428
@Shared("ctxRef") @CachedContext(PythonLanguage.class) ContextReference<PythonContext> ctxRef,
2429-
@CachedLibrary(limit = "1") PythonObjectLibrary dataModelLibrary) {
2429+
@CachedLibrary("object") PythonObjectLibrary dataModelLibrary) {
24302430
if (callBytesNode == null) {
24312431
CompilerDirectives.transferToInterpreterAndInvalidate();
24322432
callBytesNode = insert(LookupAndCallUnaryNode.create(SpecialMethodNames.__BYTES__));

0 commit comments

Comments
 (0)