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

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: Tweaks Created 5 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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, 107 return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER,
108 reg.code(), GetVReg(node))); 108 reg.code(), GetVReg(node)));
109 } 109 }
110 110
111 InstructionOperand UseFixed(Node* node, DoubleRegister reg) { 111 InstructionOperand UseFixed(Node* node, DoubleRegister reg) {
112 return Use(node, 112 return Use(node,
113 UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, 113 UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER,
114 reg.code(), GetVReg(node))); 114 reg.code(), GetVReg(node)));
115 } 115 }
116 116
117 InstructionOperand UseExplicit(Register reg) {
118 MachineType machine_type = InstructionSequence::DefaultRepresentation();
119 return ExplicitOperand(LocationOperand::REGISTER, machine_type, reg.code());
120 }
121
117 InstructionOperand UseImmediate(Node* node) { 122 InstructionOperand UseImmediate(Node* node) {
118 return sequence()->AddImmediate(ToConstant(node)); 123 return sequence()->AddImmediate(ToConstant(node));
119 } 124 }
120 125
121 InstructionOperand UseLocation(Node* node, LinkageLocation location, 126 InstructionOperand UseLocation(Node* node, LinkageLocation location,
122 MachineType type) { 127 MachineType type) {
123 return Use(node, ToUnallocatedOperand(location, type, GetVReg(node))); 128 return Use(node, ToUnallocatedOperand(location, type, GetVReg(node)));
124 } 129 }
125 130
126 InstructionOperand TempRegister() { 131 InstructionOperand TempRegister() {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 : (frame_state_descriptor->GetTotalSize() + 342 : (frame_state_descriptor->GetTotalSize() +
338 1); // Include deopt id. 343 1); // Include deopt id.
339 } 344 }
340 }; 345 };
341 346
342 } // namespace compiler 347 } // namespace compiler
343 } // namespace internal 348 } // namespace internal
344 } // namespace v8 349 } // namespace v8
345 350
346 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 351 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698