Skip to content

Commit feb427c

Browse files
committed
Move profile in AsNativePrimitiveNode
1 parent 5209790 commit feb427c

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1777,14 +1777,14 @@ static Object doGeneric(Object obj, @SuppressWarnings("unused") int signed, int
17771777
@Cached LookupAndCallUnaryDynamicNode callIndexNode,
17781778
@Cached LookupAndCallUnaryDynamicNode callIntNode,
17791779
@Cached AsNativePrimitiveNode recursive,
1780-
@Exclusive @Cached BranchProfile noIndexProfile,
1780+
@Exclusive @Cached BranchProfile noIntProfile,
17811781
@Shared("raiseNode") @Cached PRaiseNode raiseNode) {
17821782

17831783
Object result = callIndexNode.executeObject(obj, SpecialMethodNames.__INDEX__);
17841784
if (result == PNone.NO_VALUE) {
1785-
noIndexProfile.enter();
17861785
result = callIntNode.executeObject(obj, SpecialMethodNames.__INT__);
17871786
if (result == PNone.NO_VALUE) {
1787+
noIntProfile.enter();
17881788
throw raiseNode.raise(PythonErrorType.TypeError, "an integer is required (got type %p)", result);
17891789
}
17901790
}

0 commit comments

Comments
 (0)