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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 ToDualLocationUnallocatedOperand( | 83 ToDualLocationUnallocatedOperand( |
84 primary_location, secondary_location, GetVReg(node))); | 84 primary_location, secondary_location, GetVReg(node))); |
85 } | 85 } |
86 | 86 |
87 InstructionOperand Use(Node* node) { | 87 InstructionOperand Use(Node* node) { |
88 return Use(node, UnallocatedOperand(UnallocatedOperand::NONE, | 88 return Use(node, UnallocatedOperand(UnallocatedOperand::NONE, |
89 UnallocatedOperand::USED_AT_START, | 89 UnallocatedOperand::USED_AT_START, |
90 GetVReg(node))); | 90 GetVReg(node))); |
91 } | 91 } |
92 | 92 |
| 93 InstructionOperand UseAnyAtEnd(Node* node) { |
| 94 return Use(node, UnallocatedOperand(UnallocatedOperand::ANY, |
| 95 UnallocatedOperand::USED_AT_END, |
| 96 GetVReg(node))); |
| 97 } |
| 98 |
93 InstructionOperand UseAny(Node* node) { | 99 InstructionOperand UseAny(Node* node) { |
94 return Use(node, UnallocatedOperand(UnallocatedOperand::ANY, | 100 return Use(node, UnallocatedOperand(UnallocatedOperand::ANY, |
95 UnallocatedOperand::USED_AT_START, | 101 UnallocatedOperand::USED_AT_START, |
96 GetVReg(node))); | 102 GetVReg(node))); |
97 } | 103 } |
98 | 104 |
99 InstructionOperand UseRegister(Node* node) { | 105 InstructionOperand UseRegister(Node* node) { |
100 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, | 106 return Use(node, UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, |
101 UnallocatedOperand::USED_AT_START, | 107 UnallocatedOperand::USED_AT_START, |
102 GetVReg(node))); | 108 GetVReg(node))); |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 // or mode_ == kFlags_set. | 443 // or mode_ == kFlags_set. |
438 BasicBlock* true_block_; // Only valid if mode_ == kFlags_branch. | 444 BasicBlock* true_block_; // Only valid if mode_ == kFlags_branch. |
439 BasicBlock* false_block_; // Only valid if mode_ == kFlags_branch. | 445 BasicBlock* false_block_; // Only valid if mode_ == kFlags_branch. |
440 }; | 446 }; |
441 | 447 |
442 } // namespace compiler | 448 } // namespace compiler |
443 } // namespace internal | 449 } // namespace internal |
444 } // namespace v8 | 450 } // namespace v8 |
445 | 451 |
446 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 452 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
OLD | NEW |