| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 130   InstructionOperand TempRegister() { | 130   InstructionOperand TempRegister() { | 
| 131     return UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, | 131     return UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER, | 
| 132                               UnallocatedOperand::USED_AT_START, | 132                               UnallocatedOperand::USED_AT_START, | 
| 133                               sequence()->NextVirtualRegister()); | 133                               sequence()->NextVirtualRegister()); | 
| 134   } | 134   } | 
| 135 | 135 | 
| 136   InstructionOperand TempDoubleRegister() { | 136   InstructionOperand TempDoubleRegister() { | 
| 137     UnallocatedOperand op = UnallocatedOperand( | 137     UnallocatedOperand op = UnallocatedOperand( | 
| 138         UnallocatedOperand::MUST_HAVE_REGISTER, | 138         UnallocatedOperand::MUST_HAVE_REGISTER, | 
| 139         UnallocatedOperand::USED_AT_START, sequence()->NextVirtualRegister()); | 139         UnallocatedOperand::USED_AT_START, sequence()->NextVirtualRegister()); | 
| 140     sequence()->MarkAsDouble(op.virtual_register()); | 140     sequence()->MarkAsRepresentation(kRepFloat64, op.virtual_register()); | 
| 141     return op; | 141     return op; | 
| 142   } | 142   } | 
| 143 | 143 | 
| 144   InstructionOperand TempRegister(Register reg) { | 144   InstructionOperand TempRegister(Register reg) { | 
| 145     return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, | 145     return UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, | 
| 146                               Register::ToAllocationIndex(reg), | 146                               Register::ToAllocationIndex(reg), | 
| 147                               InstructionOperand::kInvalidVirtualRegister); | 147                               InstructionOperand::kInvalidVirtualRegister); | 
| 148   } | 148   } | 
| 149 | 149 | 
| 150   InstructionOperand TempImmediate(int32_t imm) { | 150   InstructionOperand TempImmediate(int32_t imm) { | 
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 377                : (frame_state_descriptor->GetTotalSize() + | 377                : (frame_state_descriptor->GetTotalSize() + | 
| 378                   1);  // Include deopt id. | 378                   1);  // Include deopt id. | 
| 379   } | 379   } | 
| 380 }; | 380 }; | 
| 381 | 381 | 
| 382 }  // namespace compiler | 382 }  // namespace compiler | 
| 383 }  // namespace internal | 383 }  // namespace internal | 
| 384 }  // namespace v8 | 384 }  // namespace v8 | 
| 385 | 385 | 
| 386 #endif  // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 386 #endif  // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ | 
| OLD | NEW | 
|---|