Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index df526d5bd7ce23abeb2b085c9488172180f8511a..0dbbc54bacb1937a32e68d733d5182bd562fdea5 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12559,6 +12559,16 @@ void BytecodeArray::Disassemble(std::ostream& os) { |
SNPrintF(buf, "%p", bytecode_start); |
os << buf.start() << " : "; |
interpreter::Bytecodes::Decode(os, bytecode_start, parameter_count()); |
+ if (interpreter::Bytecodes::IsJump(bytecode)) { |
+ int offset = static_cast<int8_t>(bytecode_start[1]); |
+ SNPrintF(buf, " (%p)", bytecode_start + offset); |
+ os << buf.start(); |
+ } else if (interpreter::Bytecodes::IsJumpConstant(bytecode)) { |
+ int index = static_cast<int>(bytecode_start[1]); |
+ int offset = Smi::cast(constant_pool()->get(index))->value(); |
+ SNPrintF(buf, " (%p)", bytecode_start + offset); |
+ os << buf.start(); |
+ } |
os << "\n"; |
} |