To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 688b44b7 authored by Stefan Marr's avatar Stefan Marr
Browse files

Fixed bug in disassembler, was not yet adapted for using instance field...


Fixed bug in disassembler, was not yet adapted for using instance field indexes instead of field names in the bytecode
Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 9919655b
......@@ -57,7 +57,7 @@ class Disassembler(object):
", context " + str(m.get_bytecode(b + 2)))
elif bytecode == Bytecodes.push_field:
Universe.error_println("(index: " + str(m.get_bytecode(b + 1)) +
") field: " + str(m.get_constant(b)))
") field: " + str(m.get_holder().get_instance_field_name(m.get_bytecode(b + 1))))
elif bytecode == Bytecodes.push_block:
Universe.error_print("block: (index: " + str(m.get_bytecode(b + 1)) + ") ")
cls.dump_method(m.get_constant(b), indent + "\t")
......@@ -78,7 +78,7 @@ class Disassembler(object):
", context: " + str(m.get_bytecode(b + 2)))
elif bytecode == Bytecodes.pop_field:
Universe.error_println("(index: " + str(m.get_bytecode(b + 1)) +
") field: " + str(m.get_constant(b)))
") field: " + str(m.get_holder().get_instance_field_name(m.get_bytecode(b + 1))))
elif bytecode == Bytecodes.send:
Universe.error_println("(index: " + str(m.get_bytecode(b + 1)) +
") signature: " + str(m.get_constant(b)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment