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_X64_INSTRUCTION_CODES_X64_H_
6 #define V8_COMPILER_X64_INSTRUCTION_CODES_X64_H_
12 // X64-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(SSEFloat64ToInt32) \
63 V(SSEFloat64ToUint32) \
64 V(SSEInt32ToFloat64) \
65 V(SSEUint32ToFloat64) \
66 V(SSEFloat64ExtractLowWord32) \
67 V(SSEFloat64ExtractHighWord32) \
68 V(SSEFloat64InsertLowWord32) \
69 V(SSEFloat64InsertHighWord32) \
70 V(SSEFloat64LoadLowWord32) \
93 V(X64StoreWriteBarrier) \
97 // Addressing modes represent the "shape" of inputs to an instruction.
98 // Many instructions support multiple addressing modes. Addressing modes
99 // are encoded into the InstructionCode of the instruction and tell the
100 // code generator after register allocation which assembler method to call.
102 // We use the following local notation for addressing modes:
104 // M = memory operand
106 // N = index register * N for N in {1, 2, 4, 8}
107 // I = immediate displacement (32-bit signed integer)
109 #define TARGET_ADDRESSING_MODE_LIST(V) \
111 V(MRI) /* [%r1 + K] */ \
112 V(MR1) /* [%r1 + %r2*1 ] */ \
113 V(MR2) /* [%r1 + %r2*2 ] */ \
114 V(MR4) /* [%r1 + %r2*4 ] */ \
115 V(MR8) /* [%r1 + %r2*8 ] */ \
116 V(MR1I) /* [%r1 + %r2*1 + K] */ \
117 V(MR2I) /* [%r1 + %r2*2 + K] */ \
118 V(MR4I) /* [%r1 + %r2*3 + K] */ \
119 V(MR8I) /* [%r1 + %r2*4 + K] */ \
120 V(M1) /* [ %r2*1 ] */ \
121 V(M2) /* [ %r2*2 ] */ \
122 V(M4) /* [ %r2*4 ] */ \
123 V(M8) /* [ %r2*8 ] */ \
124 V(M1I) /* [ %r2*1 + K] */ \
125 V(M2I) /* [ %r2*2 + K] */ \
126 V(M4I) /* [ %r2*4 + K] */ \
127 V(M8I) /* [ %r2*8 + K] */
129 } // namespace compiler
130 } // namespace internal
133 #endif // V8_COMPILER_X64_INSTRUCTION_CODES_X64_H_