12 typedef unsigned char byte;
20 virtual const char* NameOfCPURegister(
int reg)
const;
21 virtual const char* NameOfByteCPURegister(
int reg)
const;
22 virtual const char* NameOfXMMRegister(
int reg)
const;
23 virtual const char* NameOfAddress(byte* addr)
const;
24 virtual const char* NameOfConstant(byte* addr)
const;
25 virtual const char* NameInCode(byte* addr)
const;
31 virtual const char* RootRelativeName(
int offset)
const { UNREACHABLE(); }
41 enum UnimplementedOpcodeAction : int8_t {
42 kContinueOnUnimplementedOpcode,
43 kAbortOnUnimplementedOpcode
48 UnimplementedOpcodeAction unimplemented_opcode_action =
49 kAbortOnUnimplementedOpcode)
50 : converter_(converter),
51 unimplemented_opcode_action_(unimplemented_opcode_action) {}
53 UnimplementedOpcodeAction unimplemented_opcode_action()
const {
54 return unimplemented_opcode_action_;
63 int ConstantPoolSizeAt(byte* instruction);
67 static void Disassemble(FILE* f, byte* begin, byte* end,
68 UnimplementedOpcodeAction unimplemented_action =
69 kAbortOnUnimplementedOpcode);
73 const UnimplementedOpcodeAction unimplemented_opcode_action_;
80 #endif // V8_DISASM_H_