OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_ | 5 #ifndef V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_ |
6 #define V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_ | 6 #define V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace compiler { | 10 namespace compiler { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 V(ArmVstrF64) \ | 86 V(ArmVstrF64) \ |
87 V(ArmLdrb) \ | 87 V(ArmLdrb) \ |
88 V(ArmLdrsb) \ | 88 V(ArmLdrsb) \ |
89 V(ArmStrb) \ | 89 V(ArmStrb) \ |
90 V(ArmLdrh) \ | 90 V(ArmLdrh) \ |
91 V(ArmLdrsh) \ | 91 V(ArmLdrsh) \ |
92 V(ArmStrh) \ | 92 V(ArmStrh) \ |
93 V(ArmLdr) \ | 93 V(ArmLdr) \ |
94 V(ArmStr) \ | 94 V(ArmStr) \ |
95 V(ArmPush) \ | 95 V(ArmPush) \ |
| 96 V(ArmPoke) \ |
96 V(ArmStoreWriteBarrier) | 97 V(ArmStoreWriteBarrier) |
97 | 98 |
98 | 99 |
99 // Addressing modes represent the "shape" of inputs to an instruction. | 100 // Addressing modes represent the "shape" of inputs to an instruction. |
100 // Many instructions support multiple addressing modes. Addressing modes | 101 // Many instructions support multiple addressing modes. Addressing modes |
101 // are encoded into the InstructionCode of the instruction and tell the | 102 // are encoded into the InstructionCode of the instruction and tell the |
102 // code generator after register allocation which assembler method to call. | 103 // code generator after register allocation which assembler method to call. |
103 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 104 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
104 V(Offset_RI) /* [%r0 + K] */ \ | 105 V(Offset_RI) /* [%r0 + K] */ \ |
105 V(Offset_RR) /* [%r0 + %r1] */ \ | 106 V(Offset_RR) /* [%r0 + %r1] */ \ |
106 V(Operand2_I) /* K */ \ | 107 V(Operand2_I) /* K */ \ |
107 V(Operand2_R) /* %r0 */ \ | 108 V(Operand2_R) /* %r0 */ \ |
108 V(Operand2_R_ASR_I) /* %r0 ASR K */ \ | 109 V(Operand2_R_ASR_I) /* %r0 ASR K */ \ |
109 V(Operand2_R_LSL_I) /* %r0 LSL K */ \ | 110 V(Operand2_R_LSL_I) /* %r0 LSL K */ \ |
110 V(Operand2_R_LSR_I) /* %r0 LSR K */ \ | 111 V(Operand2_R_LSR_I) /* %r0 LSR K */ \ |
111 V(Operand2_R_ROR_I) /* %r0 ROR K */ \ | 112 V(Operand2_R_ROR_I) /* %r0 ROR K */ \ |
112 V(Operand2_R_ASR_R) /* %r0 ASR %r1 */ \ | 113 V(Operand2_R_ASR_R) /* %r0 ASR %r1 */ \ |
113 V(Operand2_R_LSL_R) /* %r0 LSL %r1 */ \ | 114 V(Operand2_R_LSL_R) /* %r0 LSL %r1 */ \ |
114 V(Operand2_R_LSR_R) /* %r0 LSR %r1 */ \ | 115 V(Operand2_R_LSR_R) /* %r0 LSR %r1 */ \ |
115 V(Operand2_R_ROR_R) /* %r0 ROR %r1 */ | 116 V(Operand2_R_ROR_R) /* %r0 ROR %r1 */ |
116 | 117 |
117 } // namespace compiler | 118 } // namespace compiler |
118 } // namespace internal | 119 } // namespace internal |
119 } // namespace v8 | 120 } // namespace v8 |
120 | 121 |
121 #endif // V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_ | 122 #endif // V8_COMPILER_ARM_INSTRUCTION_CODES_ARM_H_ |
OLD | NEW |