Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Side by Side Diff: src/compiler/ia32/instruction-codes-ia32.h

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback, rebase and "git cl format" Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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_IA32_INSTRUCTION_CODES_IA32_H_
6 #define V8_COMPILER_IA32_INSTRUCTION_CODES_IA32_H_
7
8 namespace v8 {
9 namespace internal {
10 namespace compiler {
11
12 // IA32-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(IA32Add) \
16 V(IA32And) \
17 V(IA32Cmp) \
18 V(IA32Test) \
19 V(IA32Or) \
20 V(IA32Xor) \
21 V(IA32Sub) \
22 V(IA32Imul) \
23 V(IA32Idiv) \
24 V(IA32Udiv) \
25 V(IA32Not) \
26 V(IA32Neg) \
27 V(IA32Shl) \
28 V(IA32Shr) \
29 V(IA32Sar) \
30 V(IA32Push) \
31 V(IA32CallCodeObject) \
32 V(IA32CallAddress) \
33 V(PopStack) \
34 V(IA32CallJSFunction) \
35 V(SSEFloat64Cmp) \
36 V(SSEFloat64Add) \
37 V(SSEFloat64Sub) \
38 V(SSEFloat64Mul) \
39 V(SSEFloat64Div) \
40 V(SSEFloat64Mod) \
41 V(SSEFloat64ToInt32) \
42 V(SSEInt32ToFloat64) \
43 V(SSELoad) \
44 V(SSEStore) \
45 V(IA32LoadWord8) \
46 V(IA32StoreWord8) \
47 V(IA32StoreWord8I) \
48 V(IA32LoadWord16) \
49 V(IA32StoreWord16) \
50 V(IA32StoreWord16I) \
51 V(IA32LoadWord32) \
52 V(IA32StoreWord32) \
53 V(IA32StoreWord32I) \
54 V(IA32StoreWriteBarrier)
55
56
57 // Addressing modes represent the "shape" of inputs to an instruction.
58 // Many instructions support multiple addressing modes. Addressing modes
59 // are encoded into the InstructionCode of the instruction and tell the
60 // code generator after register allocation which assembler method to call.
61 //
62 // We use the following local notation for addressing modes:
63 //
64 // R = register
65 // O = register or stack slot
66 // D = double register
67 // I = immediate (handle, external, int32)
68 // MR = [register]
69 // MI = [immediate]
70 // MRN = [register + register * N in {1, 2, 4, 8}]
71 // MRI = [register + immediate]
72 // MRNI = [register + register * N in {1, 2, 4, 8} + immediate]
73 #define TARGET_ADDRESSING_MODE_LIST(V) \
74 V(MI) /* [K] */ \
75 V(MR) /* [%r0] */ \
76 V(MRI) /* [%r0 + K] */ \
77 V(MR1I) /* [%r0 + %r1 * 1 + K] */ \
78 V(MR2I) /* [%r0 + %r1 * 2 + K] */ \
79 V(MR4I) /* [%r0 + %r1 * 4 + K] */ \
80 V(MR8I) /* [%r0 + %r1 * 8 + K] */
81
82 } // namespace compiler
83 } // namespace internal
84 } // namespace v8
85
86 #endif // V8_COMPILER_IA32_INSTRUCTION_CODES_IA32_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698