deps: update v8 to 4.3.61.21
[platform/upstream/nodejs.git] / deps / v8 / src / compiler / mips / instruction-codes-mips.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_MIPS_INSTRUCTION_CODES_MIPS_H_
6 #define V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_
7
8 namespace v8 {
9 namespace internal {
10 namespace compiler {
11
12 // MIPS-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(MipsAdd)                       \
16   V(MipsAddOvf)                    \
17   V(MipsSub)                       \
18   V(MipsSubOvf)                    \
19   V(MipsMul)                       \
20   V(MipsMulHigh)                   \
21   V(MipsMulHighU)                  \
22   V(MipsDiv)                       \
23   V(MipsDivU)                      \
24   V(MipsMod)                       \
25   V(MipsModU)                      \
26   V(MipsAnd)                       \
27   V(MipsOr)                        \
28   V(MipsXor)                       \
29   V(MipsClz)                       \
30   V(MipsShl)                       \
31   V(MipsShr)                       \
32   V(MipsSar)                       \
33   V(MipsRor)                       \
34   V(MipsMov)                       \
35   V(MipsTst)                       \
36   V(MipsCmp)                       \
37   V(MipsCmpD)                      \
38   V(MipsAddD)                      \
39   V(MipsSubD)                      \
40   V(MipsMulD)                      \
41   V(MipsDivD)                      \
42   V(MipsModD)                      \
43   V(MipsSqrtD)                     \
44   V(MipsFloat64RoundDown)          \
45   V(MipsFloat64RoundTruncate)      \
46   V(MipsFloat64RoundUp)            \
47   V(MipsCvtSD)                     \
48   V(MipsCvtDS)                     \
49   V(MipsTruncWD)                   \
50   V(MipsTruncUwD)                  \
51   V(MipsCvtDW)                     \
52   V(MipsCvtDUw)                    \
53   V(MipsLb)                        \
54   V(MipsLbu)                       \
55   V(MipsSb)                        \
56   V(MipsLh)                        \
57   V(MipsLhu)                       \
58   V(MipsSh)                        \
59   V(MipsLw)                        \
60   V(MipsSw)                        \
61   V(MipsLwc1)                      \
62   V(MipsSwc1)                      \
63   V(MipsLdc1)                      \
64   V(MipsSdc1)                      \
65   V(MipsFloat64ExtractLowWord32)   \
66   V(MipsFloat64ExtractHighWord32)  \
67   V(MipsFloat64InsertLowWord32)    \
68   V(MipsFloat64InsertHighWord32)   \
69   V(MipsPush)                      \
70   V(MipsStoreToStackSlot)          \
71   V(MipsStackClaim)                \
72   V(MipsStoreWriteBarrier)
73
74
75 // Addressing modes represent the "shape" of inputs to an instruction.
76 // Many instructions support multiple addressing modes. Addressing modes
77 // are encoded into the InstructionCode of the instruction and tell the
78 // code generator after register allocation which assembler method to call.
79 //
80 // We use the following local notation for addressing modes:
81 //
82 // R = register
83 // O = register or stack slot
84 // D = double register
85 // I = immediate (handle, external, int32)
86 // MRI = [register + immediate]
87 // MRR = [register + register]
88 // TODO(plind): Add the new r6 address modes.
89 #define TARGET_ADDRESSING_MODE_LIST(V) \
90   V(MRI) /* [%r0 + K] */               \
91   V(MRR) /* [%r0 + %r1] */
92
93
94 }  // namespace compiler
95 }  // namespace internal
96 }  // namespace v8
97
98 #endif  // V8_COMPILER_MIPS_INSTRUCTION_CODES_MIPS_H_