diff options
Diffstat (limited to 'deps/v8/src/mips64/disasm-mips64.cc')
-rw-r--r-- | deps/v8/src/mips64/disasm-mips64.cc | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/deps/v8/src/mips64/disasm-mips64.cc b/deps/v8/src/mips64/disasm-mips64.cc index 8f77a68b21..1279d25f42 100644 --- a/deps/v8/src/mips64/disasm-mips64.cc +++ b/deps/v8/src/mips64/disasm-mips64.cc @@ -1079,15 +1079,14 @@ int Decoder::DecodeBreakInstr(Instruction* instr) { Format(instr, "break, code: 'code"); out_buffer_pos_ += SNPrintF( out_buffer_ + out_buffer_pos_, "\n%p %08" PRIx64, - static_cast<void*>( - reinterpret_cast<int32_t*>(instr + Instruction::kInstrSize)), + static_cast<void*>(reinterpret_cast<int32_t*>(instr + kInstrSize)), reinterpret_cast<uint64_t>( - *reinterpret_cast<char**>(instr + Instruction::kInstrSize))); + *reinterpret_cast<char**>(instr + kInstrSize))); // Size 3: the break_ instr, plus embedded 64-bit char pointer. - return 3 * Instruction::kInstrSize; + return 3 * kInstrSize; } else { Format(instr, "break, code: 'code"); - return Instruction::kInstrSize; + return kInstrSize; } } @@ -1897,10 +1896,9 @@ int Decoder::DecodeTypeRegister(Instruction* instr) { default: UNREACHABLE(); } - return Instruction::kInstrSize; + return kInstrSize; } - void Decoder::DecodeTypeImmediateCOP1(Instruction* instr) { switch (instr->RsFieldRaw()) { case BC1: @@ -3023,10 +3021,9 @@ int Decoder::InstructionDecode(byte* instr_ptr) { UNSUPPORTED_MIPS(); } } - return Instruction::kInstrSize; + return kInstrSize; } - } // namespace internal } // namespace v8 @@ -3071,13 +3068,6 @@ const char* NameConverter::NameInCode(byte* addr) const { //------------------------------------------------------------------------------ -Disassembler::Disassembler(const NameConverter& converter) - : converter_(converter) {} - - -Disassembler::~Disassembler() {} - - int Disassembler::InstructionDecode(v8::internal::Vector<char> buffer, byte* instruction) { v8::internal::Decoder d(converter_, buffer); @@ -3090,10 +3080,10 @@ int Disassembler::ConstantPoolSizeAt(byte* instruction) { return -1; } - -void Disassembler::Disassemble(FILE* f, byte* begin, byte* end) { +void Disassembler::Disassemble(FILE* f, byte* begin, byte* end, + UnimplementedOpcodeAction unimplemented_action) { NameConverter converter; - Disassembler d(converter); + Disassembler d(converter, unimplemented_action); for (byte* pc = begin; pc < end;) { v8::internal::EmbeddedVector<char, 128> buffer; buffer[0] = '\0'; |