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_INSTRUCTION_CODES_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_CODES_H_ |
6 #define V8_COMPILER_INSTRUCTION_CODES_H_ | 6 #define V8_COMPILER_INSTRUCTION_CODES_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #if V8_TARGET_ARCH_ARM | 10 #if V8_TARGET_ARCH_ARM |
(...skipping 17 matching lines...) Expand all Loading... |
28 #define TARGET_ADDRESSING_MODE_LIST(V) | 28 #define TARGET_ADDRESSING_MODE_LIST(V) |
29 #endif | 29 #endif |
30 #include "src/utils.h" | 30 #include "src/utils.h" |
31 | 31 |
32 namespace v8 { | 32 namespace v8 { |
33 namespace internal { | 33 namespace internal { |
34 namespace compiler { | 34 namespace compiler { |
35 | 35 |
36 // Target-specific opcodes that specify which assembly sequence to emit. | 36 // Target-specific opcodes that specify which assembly sequence to emit. |
37 // Most opcodes specify a single instruction. | 37 // Most opcodes specify a single instruction. |
38 #define ARCH_OPCODE_LIST(V) \ | 38 #define ARCH_OPCODE_LIST(V) \ |
39 V(ArchCallCodeObject) \ | 39 V(ArchCallCodeObject) \ |
40 V(ArchTailCallCodeObject) \ | 40 V(ArchTailCallCodeObject) \ |
41 V(ArchCallJSFunction) \ | 41 V(ArchCallJSFunction) \ |
42 V(ArchTailCallJSFunction) \ | 42 V(ArchTailCallJSFunction) \ |
43 V(ArchJmp) \ | 43 V(ArchPrepareCallCFunction) \ |
44 V(ArchLookupSwitch) \ | 44 V(ArchCallCFunction) \ |
45 V(ArchTableSwitch) \ | 45 V(ArchJmp) \ |
46 V(ArchNop) \ | 46 V(ArchLookupSwitch) \ |
47 V(ArchDeoptimize) \ | 47 V(ArchTableSwitch) \ |
48 V(ArchRet) \ | 48 V(ArchNop) \ |
49 V(ArchStackPointer) \ | 49 V(ArchDeoptimize) \ |
50 V(ArchFramePointer) \ | 50 V(ArchRet) \ |
51 V(ArchTruncateDoubleToI) \ | 51 V(ArchStackPointer) \ |
52 V(CheckedLoadInt8) \ | 52 V(ArchFramePointer) \ |
53 V(CheckedLoadUint8) \ | 53 V(ArchTruncateDoubleToI) \ |
54 V(CheckedLoadInt16) \ | 54 V(CheckedLoadInt8) \ |
55 V(CheckedLoadUint16) \ | 55 V(CheckedLoadUint8) \ |
56 V(CheckedLoadWord32) \ | 56 V(CheckedLoadInt16) \ |
57 V(CheckedLoadFloat32) \ | 57 V(CheckedLoadUint16) \ |
58 V(CheckedLoadFloat64) \ | 58 V(CheckedLoadWord32) \ |
59 V(CheckedStoreWord8) \ | 59 V(CheckedLoadFloat32) \ |
60 V(CheckedStoreWord16) \ | 60 V(CheckedLoadFloat64) \ |
61 V(CheckedStoreWord32) \ | 61 V(CheckedStoreWord8) \ |
62 V(CheckedStoreFloat32) \ | 62 V(CheckedStoreWord16) \ |
63 V(CheckedStoreFloat64) \ | 63 V(CheckedStoreWord32) \ |
| 64 V(CheckedStoreFloat32) \ |
| 65 V(CheckedStoreFloat64) \ |
64 TARGET_ARCH_OPCODE_LIST(V) | 66 TARGET_ARCH_OPCODE_LIST(V) |
65 | 67 |
66 enum ArchOpcode { | 68 enum ArchOpcode { |
67 #define DECLARE_ARCH_OPCODE(Name) k##Name, | 69 #define DECLARE_ARCH_OPCODE(Name) k##Name, |
68 ARCH_OPCODE_LIST(DECLARE_ARCH_OPCODE) | 70 ARCH_OPCODE_LIST(DECLARE_ARCH_OPCODE) |
69 #undef DECLARE_ARCH_OPCODE | 71 #undef DECLARE_ARCH_OPCODE |
70 #define COUNT_ARCH_OPCODE(Name) +1 | 72 #define COUNT_ARCH_OPCODE(Name) +1 |
71 kLastArchOpcode = -1 ARCH_OPCODE_LIST(COUNT_ARCH_OPCODE) | 73 kLastArchOpcode = -1 ARCH_OPCODE_LIST(COUNT_ARCH_OPCODE) |
72 #undef COUNT_ARCH_OPCODE | 74 #undef COUNT_ARCH_OPCODE |
73 }; | 75 }; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 typedef BitField<AddressingMode, 8, 5> AddressingModeField; | 138 typedef BitField<AddressingMode, 8, 5> AddressingModeField; |
137 typedef BitField<FlagsMode, 13, 2> FlagsModeField; | 139 typedef BitField<FlagsMode, 13, 2> FlagsModeField; |
138 typedef BitField<FlagsCondition, 15, 4> FlagsConditionField; | 140 typedef BitField<FlagsCondition, 15, 4> FlagsConditionField; |
139 typedef BitField<int, 19, 13> MiscField; | 141 typedef BitField<int, 19, 13> MiscField; |
140 | 142 |
141 } // namespace compiler | 143 } // namespace compiler |
142 } // namespace internal | 144 } // namespace internal |
143 } // namespace v8 | 145 } // namespace v8 |
144 | 146 |
145 #endif // V8_COMPILER_INSTRUCTION_CODES_H_ | 147 #endif // V8_COMPILER_INSTRUCTION_CODES_H_ |
OLD | NEW |