| 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_ARM64_INSTRUCTION_CODES_ARM64_H_ | 5 #ifndef V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_ |
| 6 #define V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_ | 6 #define V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace compiler { | 10 namespace compiler { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 V(Arm64Float64Cmp) \ | 61 V(Arm64Float64Cmp) \ |
| 62 V(Arm64Float64Add) \ | 62 V(Arm64Float64Add) \ |
| 63 V(Arm64Float64Sub) \ | 63 V(Arm64Float64Sub) \ |
| 64 V(Arm64Float64Mul) \ | 64 V(Arm64Float64Mul) \ |
| 65 V(Arm64Float64Div) \ | 65 V(Arm64Float64Div) \ |
| 66 V(Arm64Float64Mod) \ | 66 V(Arm64Float64Mod) \ |
| 67 V(Arm64Float64ToInt32) \ | 67 V(Arm64Float64ToInt32) \ |
| 68 V(Arm64Float64ToUint32) \ | 68 V(Arm64Float64ToUint32) \ |
| 69 V(Arm64Int32ToFloat64) \ | 69 V(Arm64Int32ToFloat64) \ |
| 70 V(Arm64Uint32ToFloat64) \ | 70 V(Arm64Uint32ToFloat64) \ |
| 71 V(Arm64Float64Load) \ | 71 V(Arm64LdrD) \ |
| 72 V(Arm64Float64Store) \ | 72 V(Arm64StrD) \ |
| 73 V(Arm64LoadWord8) \ | 73 V(Arm64Ldrb) \ |
| 74 V(Arm64StoreWord8) \ | 74 V(Arm64Ldrsb) \ |
| 75 V(Arm64LoadWord16) \ | 75 V(Arm64Strb) \ |
| 76 V(Arm64StoreWord16) \ | 76 V(Arm64Ldrh) \ |
| 77 V(Arm64LoadWord32) \ | 77 V(Arm64Ldrsh) \ |
| 78 V(Arm64StoreWord32) \ | 78 V(Arm64Strh) \ |
| 79 V(Arm64LoadWord64) \ | 79 V(Arm64LdrW) \ |
| 80 V(Arm64StoreWord64) \ | 80 V(Arm64StrW) \ |
| 81 V(Arm64Ldr) \ |
| 82 V(Arm64Str) \ |
| 81 V(Arm64StoreWriteBarrier) | 83 V(Arm64StoreWriteBarrier) |
| 82 | 84 |
| 83 | 85 |
| 84 // Addressing modes represent the "shape" of inputs to an instruction. | 86 // Addressing modes represent the "shape" of inputs to an instruction. |
| 85 // Many instructions support multiple addressing modes. Addressing modes | 87 // Many instructions support multiple addressing modes. Addressing modes |
| 86 // are encoded into the InstructionCode of the instruction and tell the | 88 // are encoded into the InstructionCode of the instruction and tell the |
| 87 // code generator after register allocation which assembler method to call. | 89 // code generator after register allocation which assembler method to call. |
| 88 // | 90 // |
| 89 // We use the following local notation for addressing modes: | 91 // We use the following local notation for addressing modes: |
| 90 // | 92 // |
| 91 // R = register | 93 // R = register |
| 92 // O = register or stack slot | 94 // O = register or stack slot |
| 93 // D = double register | 95 // D = double register |
| 94 // I = immediate (handle, external, int32) | 96 // I = immediate (handle, external, int32) |
| 95 // MRI = [register + immediate] | 97 // MRI = [register + immediate] |
| 96 // MRR = [register + register] | 98 // MRR = [register + register] |
| 97 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 99 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
| 98 V(MRI) /* [%r0 + K] */ \ | 100 V(MRI) /* [%r0 + K] */ \ |
| 99 V(MRR) /* [%r0 + %r1] */ | 101 V(MRR) /* [%r0 + %r1] */ |
| 100 | 102 |
| 101 } // namespace internal | 103 } // namespace internal |
| 102 } // namespace compiler | 104 } // namespace compiler |
| 103 } // namespace v8 | 105 } // namespace v8 |
| 104 | 106 |
| 105 #endif // V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_ | 107 #endif // V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_ |
| OLD | NEW |