| 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_PPC_INSTRUCTION_CODES_PPC_H_ | 5 #ifndef V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_ |
| 6 #define V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_ | 6 #define V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace compiler { | 10 namespace compiler { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 V(PPC_LoadWordU16) \ | 99 V(PPC_LoadWordU16) \ |
| 100 V(PPC_LoadWordS32) \ | 100 V(PPC_LoadWordS32) \ |
| 101 V(PPC_LoadWord64) \ | 101 V(PPC_LoadWord64) \ |
| 102 V(PPC_LoadFloat32) \ | 102 V(PPC_LoadFloat32) \ |
| 103 V(PPC_LoadDouble) \ | 103 V(PPC_LoadDouble) \ |
| 104 V(PPC_StoreWord8) \ | 104 V(PPC_StoreWord8) \ |
| 105 V(PPC_StoreWord16) \ | 105 V(PPC_StoreWord16) \ |
| 106 V(PPC_StoreWord32) \ | 106 V(PPC_StoreWord32) \ |
| 107 V(PPC_StoreWord64) \ | 107 V(PPC_StoreWord64) \ |
| 108 V(PPC_StoreFloat32) \ | 108 V(PPC_StoreFloat32) \ |
| 109 V(PPC_StoreDouble) \ | 109 V(PPC_StoreDouble) |
| 110 V(PPC_StoreWriteBarrier) | |
| 111 | 110 |
| 112 | 111 |
| 113 // Addressing modes represent the "shape" of inputs to an instruction. | 112 // Addressing modes represent the "shape" of inputs to an instruction. |
| 114 // Many instructions support multiple addressing modes. Addressing modes | 113 // Many instructions support multiple addressing modes. Addressing modes |
| 115 // are encoded into the InstructionCode of the instruction and tell the | 114 // are encoded into the InstructionCode of the instruction and tell the |
| 116 // code generator after register allocation which assembler method to call. | 115 // code generator after register allocation which assembler method to call. |
| 117 // | 116 // |
| 118 // We use the following local notation for addressing modes: | 117 // We use the following local notation for addressing modes: |
| 119 // | 118 // |
| 120 // R = register | 119 // R = register |
| 121 // O = register or stack slot | 120 // O = register or stack slot |
| 122 // D = double register | 121 // D = double register |
| 123 // I = immediate (handle, external, int32) | 122 // I = immediate (handle, external, int32) |
| 124 // MRI = [register + immediate] | 123 // MRI = [register + immediate] |
| 125 // MRR = [register + register] | 124 // MRR = [register + register] |
| 126 #define TARGET_ADDRESSING_MODE_LIST(V) \ | 125 #define TARGET_ADDRESSING_MODE_LIST(V) \ |
| 127 V(MRI) /* [%r0 + K] */ \ | 126 V(MRI) /* [%r0 + K] */ \ |
| 128 V(MRR) /* [%r0 + %r1] */ | 127 V(MRR) /* [%r0 + %r1] */ |
| 129 | 128 |
| 130 } // namespace compiler | 129 } // namespace compiler |
| 131 } // namespace internal | 130 } // namespace internal |
| 132 } // namespace v8 | 131 } // namespace v8 |
| 133 | 132 |
| 134 #endif // V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_ | 133 #endif // V8_COMPILER_PPC_INSTRUCTION_CODES_PPC_H_ |
| OLD | NEW |