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 #if V8_TARGET_ARCH_ARM | 8 #if V8_TARGET_ARCH_ARM |
9 #include "src/compiler/arm/instruction-codes-arm.h" | 9 #include "src/compiler/arm/instruction-codes-arm.h" |
10 #elif V8_TARGET_ARCH_ARM64 | 10 #elif V8_TARGET_ARCH_ARM64 |
(...skipping 14 matching lines...) Expand all Loading... |
25 class OStream; | 25 class OStream; |
26 | 26 |
27 namespace compiler { | 27 namespace compiler { |
28 | 28 |
29 // Target-specific opcodes that specify which assembly sequence to emit. | 29 // Target-specific opcodes that specify which assembly sequence to emit. |
30 // Most opcodes specify a single instruction. | 30 // Most opcodes specify a single instruction. |
31 #define ARCH_OPCODE_LIST(V) \ | 31 #define ARCH_OPCODE_LIST(V) \ |
32 V(ArchCallAddress) \ | 32 V(ArchCallAddress) \ |
33 V(ArchCallCodeObject) \ | 33 V(ArchCallCodeObject) \ |
34 V(ArchCallJSFunction) \ | 34 V(ArchCallJSFunction) \ |
35 V(ArchDeoptimize) \ | |
36 V(ArchDrop) \ | 35 V(ArchDrop) \ |
37 V(ArchJmp) \ | 36 V(ArchJmp) \ |
38 V(ArchNop) \ | 37 V(ArchNop) \ |
39 V(ArchRet) \ | 38 V(ArchRet) \ |
40 V(ArchTruncateDoubleToI) \ | 39 V(ArchTruncateDoubleToI) \ |
41 TARGET_ARCH_OPCODE_LIST(V) | 40 TARGET_ARCH_OPCODE_LIST(V) |
42 | 41 |
43 enum ArchOpcode { | 42 enum ArchOpcode { |
44 #define DECLARE_ARCH_OPCODE(Name) k##Name, | 43 #define DECLARE_ARCH_OPCODE(Name) k##Name, |
45 ARCH_OPCODE_LIST(DECLARE_ARCH_OPCODE) | 44 ARCH_OPCODE_LIST(DECLARE_ARCH_OPCODE) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 typedef BitField<AddressingMode, 7, 4> AddressingModeField; | 112 typedef BitField<AddressingMode, 7, 4> AddressingModeField; |
114 typedef BitField<FlagsMode, 11, 2> FlagsModeField; | 113 typedef BitField<FlagsMode, 11, 2> FlagsModeField; |
115 typedef BitField<FlagsCondition, 13, 5> FlagsConditionField; | 114 typedef BitField<FlagsCondition, 13, 5> FlagsConditionField; |
116 typedef BitField<int, 13, 19> MiscField; | 115 typedef BitField<int, 13, 19> MiscField; |
117 | 116 |
118 } // namespace compiler | 117 } // namespace compiler |
119 } // namespace internal | 118 } // namespace internal |
120 } // namespace v8 | 119 } // namespace v8 |
121 | 120 |
122 #endif // V8_COMPILER_INSTRUCTION_CODES_H_ | 121 #endif // V8_COMPILER_INSTRUCTION_CODES_H_ |
OLD | NEW |