1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_
6 #define V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_
12 // MIPS-specific opcodes that specify which assembly sequence to emit.
13 // Most opcodes specify a single instruction.
14 #define TARGET_ARCH_OPCODE_LIST(V) \
45 V(MipsFloat64RoundTruncate) \
65 V(MipsStoreToStackSlot) \
67 V(MipsStoreWriteBarrier)
70 // Addressing modes represent the "shape" of inputs to an instruction.
71 // Many instructions support multiple addressing modes. Addressing modes
72 // are encoded into the InstructionCode of the instruction and tell the
73 // code generator after register allocation which assembler method to call.
75 // We use the following local notation for addressing modes:
78 // O = register or stack slot
79 // D = double register
80 // I = immediate (handle, external, int32)
81 // MRI = [register + immediate]
82 // MRR = [register + register]
83 // TODO(plind): Add the new r6 address modes.
84 #define TARGET_ADDRESSING_MODE_LIST(V) \
85 V(MRI) /* [%r0 + K] */ \
86 V(MRR) /* [%r0 + %r1] */
89 } // namespace compiler
90 } // namespace internal
93 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_