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

Side by Side Diff: src/compiler/instruction-selector-impl.h

Issue 1389373002: [turbofan] Create ExplicitOperands to specify operands without virtual registers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 5 years, 1 month 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
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/move-optimizer.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_SELECTOR_IMPL_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
7 7
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "src/compiler/instruction-selector.h" 9 #include "src/compiler/instruction-selector.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, 113 return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER,
114 reg.code(), GetVReg(node))); 114 reg.code(), GetVReg(node)));
115 } 115 }
116 116
117 InstructionOperand UseFixed(Node* node, DoubleRegister reg) { 117 InstructionOperand UseFixed(Node* node, DoubleRegister reg) {
118 return Use(node, 118 return Use(node,
119 UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, 119 UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER,
120 reg.code(), GetVReg(node))); 120 reg.code(), GetVReg(node)));
121 } 121 }
122 122
123 InstructionOperand UseExplicit(Register reg) {
124 MachineType machine_type = InstructionSequence::DefaultRepresentation();
125 return ExplicitOperand(LocationOperand::REGISTER, machine_type, reg.code());
126 }
127
123 InstructionOperand UseImmediate(Node* node) { 128 InstructionOperand UseImmediate(Node* node) {
124 return sequence()->AddImmediate(ToConstant(node)); 129 return sequence()->AddImmediate(ToConstant(node));
125 } 130 }
126 131
127 InstructionOperand UseLocation(Node* node, LinkageLocation location, 132 InstructionOperand UseLocation(Node* node, LinkageLocation location,
128 MachineType type) { 133 MachineType type) {
129 return Use(node, ToUnallocatedOperand(location, type, GetVReg(node))); 134 return Use(node, ToUnallocatedOperand(location, type, GetVReg(node)));
130 } 135 }
131 136
132 InstructionOperand TempRegister() { 137 InstructionOperand TempRegister() {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 : (frame_state_descriptor->GetTotalSize() + 348 : (frame_state_descriptor->GetTotalSize() +
344 1); // Include deopt id. 349 1); // Include deopt id.
345 } 350 }
346 }; 351 };
347 352
348 } // namespace compiler 353 } // namespace compiler
349 } // namespace internal 354 } // namespace internal
350 } // namespace v8 355 } // namespace v8
351 356
352 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 357 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/move-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698