| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index b2736818f957c96b700bf01311d85a8b057f432d..1e69dbbc40e267d3dd5e9ad293717afa01a03837 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -14807,15 +14807,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";
|
| }
|
|
|