Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / v8 / src / compiler / arm64 / instruction-codes-arm64.h
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.
4
5 #ifndef V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_
6 #define V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_
7
8 namespace v8 {
9 namespace internal {
10 namespace compiler {
11
12 // ARM64-specific opcodes that specify which assembly sequence to emit.
13 // Most opcodes specify a single instruction.
14 #define TARGET_ARCH_OPCODE_LIST(V) \
15   V(Arm64Add)                      \
16   V(Arm64Add32)                    \
17   V(Arm64And)                      \
18   V(Arm64And32)                    \
19   V(Arm64Bic)                      \
20   V(Arm64Bic32)                    \
21   V(Arm64Cmp)                      \
22   V(Arm64Cmp32)                    \
23   V(Arm64Cmn)                      \
24   V(Arm64Cmn32)                    \
25   V(Arm64Tst)                      \
26   V(Arm64Tst32)                    \
27   V(Arm64Or)                       \
28   V(Arm64Or32)                     \
29   V(Arm64Orn)                      \
30   V(Arm64Orn32)                    \
31   V(Arm64Eor)                      \
32   V(Arm64Eor32)                    \
33   V(Arm64Eon)                      \
34   V(Arm64Eon32)                    \
35   V(Arm64Sub)                      \
36   V(Arm64Sub32)                    \
37   V(Arm64Mul)                      \
38   V(Arm64Mul32)                    \
39   V(Arm64Smull)                    \
40   V(Arm64Umull)                    \
41   V(Arm64Madd)                     \
42   V(Arm64Madd32)                   \
43   V(Arm64Msub)                     \
44   V(Arm64Msub32)                   \
45   V(Arm64Mneg)                     \
46   V(Arm64Mneg32)                   \
47   V(Arm64Idiv)                     \
48   V(Arm64Idiv32)                   \
49   V(Arm64Udiv)                     \
50   V(Arm64Udiv32)                   \
51   V(Arm64Imod)                     \
52   V(Arm64Imod32)                   \
53   V(Arm64Umod)                     \
54   V(Arm64Umod32)                   \
55   V(Arm64Not)                      \
56   V(Arm64Not32)                    \
57   V(Arm64Neg)                      \
58   V(Arm64Neg32)                    \
59   V(Arm64Lsl)                      \
60   V(Arm64Lsl32)                    \
61   V(Arm64Lsr)                      \
62   V(Arm64Lsr32)                    \
63   V(Arm64Asr)                      \
64   V(Arm64Asr32)                    \
65   V(Arm64Ror)                      \
66   V(Arm64Ror32)                    \
67   V(Arm64Mov32)                    \
68   V(Arm64Sxtw)                     \
69   V(Arm64Ubfx)                     \
70   V(Arm64Ubfx32)                   \
71   V(Arm64Tbz)                      \
72   V(Arm64Tbz32)                    \
73   V(Arm64Tbnz)                     \
74   V(Arm64Tbnz32)                   \
75   V(Arm64Claim)                    \
76   V(Arm64Poke)                     \
77   V(Arm64PokePairZero)             \
78   V(Arm64PokePair)                 \
79   V(Arm64Float64Cmp)               \
80   V(Arm64Float64Add)               \
81   V(Arm64Float64Sub)               \
82   V(Arm64Float64Mul)               \
83   V(Arm64Float64Div)               \
84   V(Arm64Float64Mod)               \
85   V(Arm64Float64Sqrt)              \
86   V(Arm64Float64Floor)             \
87   V(Arm64Float64Ceil)              \
88   V(Arm64Float64RoundTruncate)     \
89   V(Arm64Float64RoundTiesAway)     \
90   V(Arm64Float32ToFloat64)         \
91   V(Arm64Float64ToFloat32)         \
92   V(Arm64Float64ToInt32)           \
93   V(Arm64Float64ToUint32)          \
94   V(Arm64Int32ToFloat64)           \
95   V(Arm64Uint32ToFloat64)          \
96   V(Arm64LdrS)                     \
97   V(Arm64StrS)                     \
98   V(Arm64LdrD)                     \
99   V(Arm64StrD)                     \
100   V(Arm64Ldrb)                     \
101   V(Arm64Ldrsb)                    \
102   V(Arm64Strb)                     \
103   V(Arm64Ldrh)                     \
104   V(Arm64Ldrsh)                    \
105   V(Arm64Strh)                     \
106   V(Arm64LdrW)                     \
107   V(Arm64StrW)                     \
108   V(Arm64Ldr)                      \
109   V(Arm64Str)                      \
110   V(Arm64StoreWriteBarrier)
111
112
113 // Addressing modes represent the "shape" of inputs to an instruction.
114 // Many instructions support multiple addressing modes. Addressing modes
115 // are encoded into the InstructionCode of the instruction and tell the
116 // code generator after register allocation which assembler method to call.
117 //
118 // We use the following local notation for addressing modes:
119 //
120 // R = register
121 // O = register or stack slot
122 // D = double register
123 // I = immediate (handle, external, int32)
124 // MRI = [register + immediate]
125 // MRR = [register + register]
126 #define TARGET_ADDRESSING_MODE_LIST(V)  \
127   V(MRI)              /* [%r0 + K] */   \
128   V(MRR)              /* [%r0 + %r1] */ \
129   V(Operand2_R_LSL_I) /* %r0 LSL K */   \
130   V(Operand2_R_LSR_I) /* %r0 LSR K */   \
131   V(Operand2_R_ASR_I) /* %r0 ASR K */   \
132   V(Operand2_R_ROR_I) /* %r0 ROR K */
133
134 }  // namespace internal
135 }  // namespace compiler
136 }  // namespace v8
137
138 #endif  // V8_COMPILER_ARM64_INSTRUCTION_CODES_ARM64_H_