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 // MIPS64-specific opcodes that specify which assembly sequence to emit.
13 // Most opcodes specify a single instruction.
14 #define TARGET_ARCH_OPCODE_LIST(V) \
56 V(Mips64Float64Floor) \
57 V(Mips64Float64Ceil) \
58 V(Mips64Float64RoundTruncate) \
80 V(Mips64StoreToStackSlot) \
82 V(Mips64StoreWriteBarrier)
85 // Addressing modes represent the "shape" of inputs to an instruction.
86 // Many instructions support multiple addressing modes. Addressing modes
87 // are encoded into the InstructionCode of the instruction and tell the
88 // code generator after register allocation which assembler method to call.
90 // We use the following local notation for addressing modes:
93 // O = register or stack slot
94 // D = double register
95 // I = immediate (handle, external, int32)
96 // MRI = [register + immediate]
97 // MRR = [register + register]
98 // TODO(plind): Add the new r6 address modes.
99 #define TARGET_ADDRESSING_MODE_LIST(V) \
100 V(MRI) /* [%r0 + K] */ \
101 V(MRR) /* [%r0 + %r1] */
104 } // namespace compiler
105 } // namespace internal
108 #endif // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_