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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, | 113 return Use(node, UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |
114 reg.code(), GetVReg(node))); | 114 reg.code(), GetVReg(node))); |
115 } | 115 } |
116 | 116 |
117 InstructionOperand UseFixed(Node* node, DoubleRegister reg) { | 117 InstructionOperand UseFixed(Node* node, DoubleRegister reg) { |
118 return Use(node, | 118 return Use(node, |
119 UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, | 119 UnallocatedOperand(UnallocatedOperand::FIXED_DOUBLE_REGISTER, |
120 reg.code(), GetVReg(node))); | 120 reg.code(), GetVReg(node))); |
121 } | 121 } |
122 | 122 |
123 InstructionOperand UseExplicit(Register reg) { | |
124 MachineType machine_type = InstructionSequence::DefaultRepresentation(); | |
125 return ExplicitOperand(LocationOperand::REGISTER, machine_type, reg.code()); | |
Jarin
2015/10/26 13:37:02
Maybe I missed it somewhere, but should not we onl
| |
126 } | |
127 | |
123 InstructionOperand UseImmediate(Node* node) { | 128 InstructionOperand UseImmediate(Node* node) { |
124 return sequence()->AddImmediate(ToConstant(node)); | 129 return sequence()->AddImmediate(ToConstant(node)); |
125 } | 130 } |
126 | 131 |
127 InstructionOperand UseLocation(Node* node, LinkageLocation location, | 132 InstructionOperand UseLocation(Node* node, LinkageLocation location, |
128 MachineType type) { | 133 MachineType type) { |
129 return Use(node, ToUnallocatedOperand(location, type, GetVReg(node))); | 134 return Use(node, ToUnallocatedOperand(location, type, GetVReg(node))); |
130 } | 135 } |
131 | 136 |
132 InstructionOperand TempRegister() { | 137 InstructionOperand TempRegister() { |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
343 : (frame_state_descriptor->GetTotalSize() + | 348 : (frame_state_descriptor->GetTotalSize() + |
344 1); // Include deopt id. | 349 1); // Include deopt id. |
345 } | 350 } |
346 }; | 351 }; |
347 | 352 |
348 } // namespace compiler | 353 } // namespace compiler |
349 } // namespace internal | 354 } // namespace internal |
350 } // namespace v8 | 355 } // namespace v8 |
351 | 356 |
352 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 357 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ |
OLD | NEW |