| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 8f14bd0f318925311481d5c088e7af48e6f2f971..93d921f2ec1ad9f7dce25fcf8e9f006c87c13479 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -14845,15 +14845,24 @@ 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]);
|
| +
|
| + if (interpreter::Bytecodes::IsJumpConstantWide(bytecode)) {
|
| + DCHECK_EQ(bytecode_size, 3);
|
| + int index = static_cast<int>(ReadUnalignedUInt16(bytecode_start + 1));
|
| + int offset = Smi::cast(constant_pool()->get(index))->value();
|
| SNPrintF(buf, " (%p)", bytecode_start + offset);
|
| os << buf.start();
|
| } else if (interpreter::Bytecodes::IsJumpConstant(bytecode)) {
|
| + DCHECK_EQ(bytecode_size, 2);
|
| 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();
|
| + } else if (interpreter::Bytecodes::IsJump(bytecode)) {
|
| + DCHECK_EQ(bytecode_size, 2);
|
| + int offset = static_cast<int8_t>(bytecode_start[1]);
|
| + SNPrintF(buf, " (%p)", bytecode_start + offset);
|
| + os << buf.start();
|
| }
|
| os << "\n";
|
| }
|
|
|