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

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

Issue 1018853003: [turbofan] add non fixed slot constraint to register allocator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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.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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 UnallocatedOperand::USED_AT_START, 68 UnallocatedOperand::USED_AT_START,
69 GetVReg(node))); 69 GetVReg(node)));
70 } 70 }
71 71
72 InstructionOperand UseRegister(Node* node) { 72 InstructionOperand UseRegister(Node* node) {
73 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, 73 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER,
74 UnallocatedOperand::USED_AT_START, 74 UnallocatedOperand::USED_AT_START,
75 GetVReg(node))); 75 GetVReg(node)));
76 } 76 }
77 77
78 InstructionOperand UseUniqueSlot(Node* node) {
79 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_SLOT,
80 GetVReg(node)));
81 }
82
78 // Use register or operand for the node. If a register is chosen, it won't 83 // Use register or operand for the node. If a register is chosen, it won't
79 // alias any temporary or output registers. 84 // alias any temporary or output registers.
80 InstructionOperand UseUnique(Node* node) { 85 InstructionOperand UseUnique(Node* node) {
81 return Use(node, 86 return Use(node,
82 UnallocatedOperand(UnallocatedOperand::NONE, GetVReg(node))); 87 UnallocatedOperand(UnallocatedOperand::NONE, GetVReg(node)));
83 } 88 }
84 89
85 // Use a unique register for the node that does not alias any temporary or 90 // Use a unique register for the node that does not alias any temporary or
86 // output registers. 91 // output registers.
87 InstructionOperand UseUniqueRegister(Node* node) { 92 InstructionOperand UseUniqueRegister(Node* node) {
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 : (frame_state_descriptor->GetTotalSize() + 369 : (frame_state_descriptor->GetTotalSize() +
365 1); // Include deopt id. 370 1); // Include deopt id.
366 } 371 }
367 }; 372 };
368 373
369 } // namespace compiler 374 } // namespace compiler
370 } // namespace internal 375 } // namespace internal
371 } // namespace v8 376 } // namespace v8
372 377
373 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 378 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/register-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698