Skip to content

Commit e916c9e

Browse files
author
rocky
committed
More graal bytecode tweaks
1 parent 8206e12 commit e916c9e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
2.52 KB
Binary file not shown.

xdis/bytecode_graal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def get_instructions_bytes_graal(
170170
argrepr = collection_to_str(arg)
171171
break
172172
elif opcode == opc.opmap["UNPACK_EX"]:
173-
argrepr = "%d, %d" % (arg, Byte.toUnsignedInt(following_args[0]))
173+
argrepr = "%d, %d" % (arg, int(following_args[0]))
174174
break
175175
elif optype == "jrel":
176176
# fields.computeIfAbsent(offset + arg, k -> new String[DISASSEMBLY_NUM_COLUMNS])[1] = ">>"

xdis/opcodes/opcode_311graal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@
680680
#
681681
# Pushes (if jumping): the exception
682682
#
683-
jrel_op_graal(loc, "MATCH_EXC_OR_JUMP", 0x5C, 1, 0, 1)
683+
jrel_op_graal(loc, "MATCH_EXC_OR_JUMP", 0x5C, 1, 0)
684684
#
685685
# Save the current exception state on the stack and set it to the exception on the stack. The
686686
# exception object is {@link PException}, not a python exception. The exception is pushed back
@@ -690,7 +690,7 @@
690690
#
691691
# Pushes: the saved exception state, the exception
692692
#
693-
def_op_graal(loc, "PUSH_EXC_INFO", 0x5D, 0, 0, 1)
693+
def_op_graal(loc, "PUSH_EXC_INFO", 0x5D, 0, 0, 0)
694694

695695
# Sets the current exception state to the saved state (by {@link #PUSH_EXC_INFO}) on the stack
696696
# and pop it.

0 commit comments

Comments
 (0)