| 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 #include "src/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace compiler { | 10 namespace compiler { |
| 11 | 11 |
| 12 // Adds X64-specific methods for generating operands. | 12 // Adds X64-specific methods for generating operands. |
| 13 class X64OperandGenerator V8_FINAL : public OperandGenerator { | 13 class X64OperandGenerator FINAL : public OperandGenerator { |
| 14 public: | 14 public: |
| 15 explicit X64OperandGenerator(InstructionSelector* selector) | 15 explicit X64OperandGenerator(InstructionSelector* selector) |
| 16 : OperandGenerator(selector) {} | 16 : OperandGenerator(selector) {} |
| 17 | 17 |
| 18 InstructionOperand* TempRegister(Register reg) { | 18 InstructionOperand* TempRegister(Register reg) { |
| 19 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, | 19 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |
| 20 Register::ToAllocationIndex(reg)); | 20 Register::ToAllocationIndex(reg)); |
| 21 } | 21 } |
| 22 | 22 |
| 23 InstructionOperand* UseByteRegister(Node* node) { | 23 InstructionOperand* UseByteRegister(Node* node) { |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 DCHECK(deoptimization == NULL && continuation == NULL); | 726 DCHECK(deoptimization == NULL && continuation == NULL); |
| 727 Emit(kArchDrop | | 727 Emit(kArchDrop | |
| 728 MiscField::encode(static_cast<int>(buffer.pushed_nodes.size())), | 728 MiscField::encode(static_cast<int>(buffer.pushed_nodes.size())), |
| 729 NULL); | 729 NULL); |
| 730 } | 730 } |
| 731 } | 731 } |
| 732 | 732 |
| 733 } // namespace compiler | 733 } // namespace compiler |
| 734 } // namespace internal | 734 } // namespace internal |
| 735 } // namespace v8 | 735 } // namespace v8 |
| OLD | NEW |