|
57 | 57 | import com.oracle.graal.python.nodes.call.special.LookupAndCallUnaryNode;
|
58 | 58 | import com.oracle.graal.python.nodes.control.GetIteratorNode;
|
59 | 59 | import com.oracle.graal.python.nodes.control.GetNextNode;
|
60 |
| -import com.oracle.graal.python.nodes.function.builtins.PythonBinaryBuiltinNode; |
61 | 60 | import com.oracle.graal.python.runtime.exception.PException;
|
62 | 61 | import com.oracle.graal.python.runtime.sequence.storage.SequenceStorage;
|
63 | 62 | import com.oracle.truffle.api.CompilerDirectives;
|
|
66 | 65 | import com.oracle.truffle.api.dsl.Fallback;
|
67 | 66 | import com.oracle.truffle.api.dsl.ImportStatic;
|
68 | 67 | import com.oracle.truffle.api.dsl.Specialization;
|
69 |
| -import com.oracle.truffle.api.nodes.Node.Child; |
70 | 68 | import com.oracle.truffle.api.profiles.ConditionProfile;
|
71 | 69 | import com.oracle.truffle.api.profiles.ValueProfile;
|
72 | 70 |
|
@@ -322,8 +320,8 @@ public int execute(PIBytesLike left, PIBytesLike right) {
|
322 | 320 | PIBytesLike leftProfiled = leftProfile.profile(left);
|
323 | 321 | PIBytesLike rightProfiled = rightProfile.profile(right);
|
324 | 322 | for (int i = 0; i < Math.min(leftProfiled.len(), rightProfiled.len()); i++) {
|
325 |
| - byte a = (byte) getGetLeftItemNode().execute(leftProfiled.getSequenceStorage(), i); |
326 |
| - byte b = (byte) getGetRightItemNode().execute(rightProfiled.getSequenceStorage(), i); |
| 323 | + int a = getGetLeftItemNode().executeInt(leftProfiled.getSequenceStorage(), i); |
| 324 | + int b = getGetRightItemNode().executeInt(rightProfiled.getSequenceStorage(), i); |
327 | 325 | if (a != b) {
|
328 | 326 | // CPython uses 'memcmp'; so do unsigned comparison
|
329 | 327 | return a & 0xFF - b & 0xFF;
|
|
0 commit comments