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

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

Issue 605693002: [turbofan] add new x64 addressing modes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: gcc fix Created 6 years, 2 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
« no previous file with comments | « no previous file | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698