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) \
62 V(ArmStoreWriteBarrier)
65 // Addressing modes represent the "shape" of inputs to an instruction.
66 // Many instructions support multiple addressing modes. Addressing modes
67 // are encoded into the InstructionCode of the instruction and tell the
68 // code generator after register allocation which assembler method to call.
69 #define TARGET_ADDRESSING_MODE_LIST(V) \
70 V(Offset_RI) /* [%r0 + K] */ \
71 V(Offset_RR) /* [%r0 + %r1] */ \
72 V(Operand2_I) /* K */ \
73 V(Operand2_R) /* %r0 */ \
74 V(Operand2_R_ASR_I) /* %r0 ASR K */ \
75 V(Operand2_R_LSL_I) /* %r0 LSL K */ \
76 V(Operand2_R_LSR_I) /* %r0 LSR K */ \
77 V(Operand2_R_ROR_I) /* %r0 ROR K */ \
78 V(Operand2_R_ASR_R) /* %r0 ASR %r1 */ \
79 V(Operand2_R_LSL_R) /* %r0 LSL %r1 */ \
80 V(Operand2_R_LSR_R) /* %r0 LSR %r1 */ \
81 V(Operand2_R_ROR_R) /* %r0 ROR %r1 */
83 } // namespace compiler
84 } // namespace internal
87 #endif // V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_