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_ARM_INSTRUCTION_CODES_ARM_H_
6 #define V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_
12 // ARM-specific opcodes that specify which assembly sequence to emit.
13 // Most opcodes specify a single instruction.
14 #define TARGET_ARCH_OPCODE_LIST(V) \
69 V(ArmVmovHighU32F64) \
70 V(ArmVmovHighF64U32) \
85 V(ArmStoreWriteBarrier)
88 // Addressing modes represent the "shape" of inputs to an instruction.
89 // Many instructions support multiple addressing modes. Addressing modes
90 // are encoded into the InstructionCode of the instruction and tell the
91 // code generator after register allocation which assembler method to call.
92 #define TARGET_ADDRESSING_MODE_LIST(V) \
93 V(Offset_RI) /* [%r0 + K] */ \
94 V(Offset_RR) /* [%r0 + %r1] */ \
95 V(Operand2_I) /* K */ \
96 V(Operand2_R) /* %r0 */ \
97 V(Operand2_R_ASR_I) /* %r0 ASR K */ \
98 V(Operand2_R_LSL_I) /* %r0 LSL K */ \
99 V(Operand2_R_LSR_I) /* %r0 LSR K */ \
100 V(Operand2_R_ROR_I) /* %r0 ROR K */ \
101 V(Operand2_R_ASR_R) /* %r0 ASR %r1 */ \
102 V(Operand2_R_LSL_R) /* %r0 LSL %r1 */ \
103 V(Operand2_R_LSR_R) /* %r0 LSR %r1 */ \
104 V(Operand2_R_ROR_R) /* %r0 ROR %r1 */
106 } // namespace compiler
107 } // namespace internal
110 #endif // V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_