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 1398943003: [turbofan] Change deoptimization register allocator constraints to ANY. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/register-allocator-verifier.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 MachineType type) { 71 MachineType type) {
72 return Define(node, ToUnallocatedOperand(location, type, GetVReg(node))); 72 return Define(node, ToUnallocatedOperand(location, type, GetVReg(node)));
73 } 73 }
74 74
75 InstructionOperand Use(Node* node) { 75 InstructionOperand Use(Node* node) {
76 return Use(node, UnallocatedOperand(UnallocatedOperand::NONE, 76 return Use(node, UnallocatedOperand(UnallocatedOperand::NONE,
77 UnallocatedOperand::USED_AT_START, 77 UnallocatedOperand::USED_AT_START,
78 GetVReg(node))); 78 GetVReg(node)));
79 } 79 }
80 80
81 InstructionOperand UseAny(Node* node) {
82 return Use(node, UnallocatedOperand(UnallocatedOperand::ANY,
83 UnallocatedOperand::USED_AT_START,
84 GetVReg(node)));
85 }
86
81 InstructionOperand UseRegister(Node* node) { 87 InstructionOperand UseRegister(Node* node) {
82 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, 88 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER,
83 UnallocatedOperand::USED_AT_START, 89 UnallocatedOperand::USED_AT_START,
84 GetVReg(node))); 90 GetVReg(node)));
85 } 91 }
86 92
87 InstructionOperand UseUniqueSlot(Node* node) { 93 InstructionOperand UseUniqueSlot(Node* node) {
88 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_SLOT, 94 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_SLOT,
89 GetVReg(node))); 95 GetVReg(node)));
90 } 96 }
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 : (frame_state_descriptor->GetTotalSize() + 343 : (frame_state_descriptor->GetTotalSize() +
338 1); // Include deopt id. 344 1); // Include deopt id.
339 } 345 }
340 }; 346 };
341 347
342 } // namespace compiler 348 } // namespace compiler
343 } // namespace internal 349 } // namespace internal
344 } // namespace v8 350 } // namespace v8
345 351
346 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 352 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/register-allocator-verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698