| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // what code to emit for an instruction in the code generator. It is not | 100 // what code to emit for an instruction in the code generator. It is not |
| 101 // interesting to the register allocator, as the inputs and flags on the | 101 // interesting to the register allocator, as the inputs and flags on the |
| 102 // instructions specify everything of interest. | 102 // instructions specify everything of interest. |
| 103 typedef int32_t InstructionCode; | 103 typedef int32_t InstructionCode; |
| 104 | 104 |
| 105 // Helpers for encoding / decoding InstructionCode into the fields needed | 105 // Helpers for encoding / decoding InstructionCode into the fields needed |
| 106 // for code generation. We encode the instruction, addressing mode, and flags | 106 // for code generation. We encode the instruction, addressing mode, and flags |
| 107 // continuation into a single InstructionCode which is stored as part of | 107 // continuation into a single InstructionCode which is stored as part of |
| 108 // the instruction. | 108 // the instruction. |
| 109 typedef BitField<ArchOpcode, 0, 7> ArchOpcodeField; | 109 typedef BitField<ArchOpcode, 0, 7> ArchOpcodeField; |
| 110 typedef BitField<AddressingMode, 7, 4> AddressingModeField; | 110 typedef BitField<AddressingMode, 7, 5> AddressingModeField; |
| 111 typedef BitField<FlagsMode, 11, 2> FlagsModeField; | 111 typedef BitField<FlagsMode, 12, 2> FlagsModeField; |
| 112 typedef BitField<FlagsCondition, 13, 5> FlagsConditionField; | 112 typedef BitField<FlagsCondition, 14, 5> FlagsConditionField; |
| 113 typedef BitField<int, 13, 19> MiscField; | 113 typedef BitField<int, 14, 18> MiscField; |
| 114 | 114 |
| 115 } // namespace compiler | 115 } // namespace compiler |
| 116 } // namespace internal | 116 } // namespace internal |
| 117 } // namespace v8 | 117 } // namespace v8 |
| 118 | 118 |
| 119 #endif // V8_COMPILER_INSTRUCTION_CODES_H_ | 119 #endif // V8_COMPILER_INSTRUCTION_CODES_H_ |
| OLD | NEW |