| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 4f9773cf7ce427947af6c23877ba4d72078dde6d..302c4ac7cc9fb6a97f2863b72cca333671169bd8 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -12506,6 +12506,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";
|
| }
|
|
|
|
|