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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |