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

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

Issue 904693002: [turbofan] Remove global InstructionOperand caches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/pipeline.h » ('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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 UnallocatedOperand op = UnallocatedOperand( 121 UnallocatedOperand op = UnallocatedOperand(
122 UnallocatedOperand::MUST_HAVE_REGISTER, 122 UnallocatedOperand::MUST_HAVE_REGISTER,
123 UnallocatedOperand::USED_AT_START, sequence()->NextVirtualRegister()); 123 UnallocatedOperand::USED_AT_START, sequence()->NextVirtualRegister());
124 sequence()->MarkAsDouble(op.virtual_register()); 124 sequence()->MarkAsDouble(op.virtual_register());
125 return op; 125 return op;
126 } 126 }
127 127
128 InstructionOperand TempRegister(Register reg) { 128 InstructionOperand TempRegister(Register reg) {
129 return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, 129 return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER,
130 Register::ToAllocationIndex(reg), 130 Register::ToAllocationIndex(reg),
131 UnallocatedOperand::kInvalidVirtualRegister); 131 InstructionOperand::kInvalidVirtualRegister);
132 } 132 }
133 133
134 InstructionOperand TempImmediate(int32_t imm) { 134 InstructionOperand TempImmediate(int32_t imm) {
135 int index = sequence()->AddImmediate(Constant(imm)); 135 int index = sequence()->AddImmediate(Constant(imm));
136 return ImmediateOperand(index); 136 return ImmediateOperand(index);
137 } 137 }
138 138
139 InstructionOperand TempLocation(LinkageLocation location, MachineType type) { 139 InstructionOperand TempLocation(LinkageLocation location, MachineType type) {
140 return ToUnallocatedOperand(location, type, 140 return ToUnallocatedOperand(location, type,
141 sequence()->NextVirtualRegister()); 141 sequence()->NextVirtualRegister());
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 : (frame_state_descriptor->GetTotalSize() + 362 : (frame_state_descriptor->GetTotalSize() +
363 1); // Include deopt id. 363 1); // Include deopt id.
364 } 364 }
365 }; 365 };
366 366
367 } // namespace compiler 367 } // namespace compiler
368 } // namespace internal 368 } // namespace internal
369 } // namespace v8 369 } // namespace v8
370 370
371 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 371 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698