OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |