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

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

Issue 1111323003: Reland: [turbofan] add MachineType to AllocatedOperand (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 7 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
« no previous file with comments | « src/compiler/instruction-selector.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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 InstructionOperand TempRegister() { 130 InstructionOperand TempRegister() {
131 return UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, 131 return UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER,
132 UnallocatedOperand::USED_AT_START, 132 UnallocatedOperand::USED_AT_START,
133 sequence()->NextVirtualRegister()); 133 sequence()->NextVirtualRegister());
134 } 134 }
135 135
136 InstructionOperand TempDoubleRegister() { 136 InstructionOperand TempDoubleRegister() {
137 UnallocatedOperand op = UnallocatedOperand( 137 UnallocatedOperand op = UnallocatedOperand(
138 UnallocatedOperand::MUST_HAVE_REGISTER, 138 UnallocatedOperand::MUST_HAVE_REGISTER,
139 UnallocatedOperand::USED_AT_START, sequence()->NextVirtualRegister()); 139 UnallocatedOperand::USED_AT_START, sequence()->NextVirtualRegister());
140 sequence()->MarkAsDouble(op.virtual_register()); 140 sequence()->MarkAsRepresentation(kRepFloat64, op.virtual_register());
141 return op; 141 return op;
142 } 142 }
143 143
144 InstructionOperand TempRegister(Register reg) { 144 InstructionOperand TempRegister(Register reg) {
145 return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, 145 return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER,
146 Register::ToAllocationIndex(reg), 146 Register::ToAllocationIndex(reg),
147 InstructionOperand::kInvalidVirtualRegister); 147 InstructionOperand::kInvalidVirtualRegister);
148 } 148 }
149 149
150 InstructionOperand TempImmediate(int32_t imm) { 150 InstructionOperand TempImmediate(int32_t imm) {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 : (frame_state_descriptor->GetTotalSize() + 377 : (frame_state_descriptor->GetTotalSize() +
378 1); // Include deopt id. 378 1); // Include deopt id.
379 } 379 }
380 }; 380 };
381 381
382 } // namespace compiler 382 } // namespace compiler
383 } // namespace internal 383 } // namespace internal
384 } // namespace v8 384 } // namespace v8
385 385
386 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 386 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/move-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698