diff options
Diffstat (limited to 'deps/v8/src/ppc/disasm-ppc.cc')
-rw-r--r-- | deps/v8/src/ppc/disasm-ppc.cc | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/deps/v8/src/ppc/disasm-ppc.cc b/deps/v8/src/ppc/disasm-ppc.cc index 5564fd9c329..1b8a1139a36 100644 --- a/deps/v8/src/ppc/disasm-ppc.cc +++ b/deps/v8/src/ppc/disasm-ppc.cc @@ -1157,7 +1157,7 @@ int Decoder::InstructionDecode(byte* instr_ptr) { // The first field will be identified as a jump table entry. We // emit the rest of the structure as zero, so just skip past them. Format(instr, "constant"); - return Instruction::kInstrSize; + return kInstrSize; } uint32_t opcode = instr->OpcodeValue() << 26; @@ -1466,7 +1466,7 @@ int Decoder::InstructionDecode(byte* instr_ptr) { } } - return Instruction::kInstrSize; + return kInstrSize; } } // namespace internal } // namespace v8 @@ -1512,13 +1512,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); @@ -1529,10 +1522,10 @@ int Disassembler::InstructionDecode(v8::internal::Vector<char> buffer, // The PPC assembler does not currently use constant pools. 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'; |