| 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 #ifndef _WIN64 |
| 13 |
| 12 // Adds X64-specific methods for generating operands. | 14 // Adds X64-specific methods for generating operands. |
| 13 class X64OperandGenerator V8_FINAL : public OperandGenerator { | 15 class X64OperandGenerator V8_FINAL : public OperandGenerator { |
| 14 public: | 16 public: |
| 15 explicit X64OperandGenerator(InstructionSelector* selector) | 17 explicit X64OperandGenerator(InstructionSelector* selector) |
| 16 : OperandGenerator(selector) {} | 18 : OperandGenerator(selector) {} |
| 17 | 19 |
| 18 InstructionOperand* TempRegister(Register reg) { | 20 InstructionOperand* TempRegister(Register reg) { |
| 19 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, | 21 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |
| 20 Register::ToAllocationIndex(reg)); | 22 Register::ToAllocationIndex(reg)); |
| 21 } | 23 } |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 } | 672 } |
| 671 | 673 |
| 672 // Caller clean up of stack for C-style calls. | 674 // Caller clean up of stack for C-style calls. |
| 673 if (descriptor->kind() == CallDescriptor::kCallAddress && | 675 if (descriptor->kind() == CallDescriptor::kCallAddress && |
| 674 buffer.pushed_count > 0) { | 676 buffer.pushed_count > 0) { |
| 675 ASSERT(deoptimization == NULL && continuation == NULL); | 677 ASSERT(deoptimization == NULL && continuation == NULL); |
| 676 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL); | 678 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL); |
| 677 } | 679 } |
| 678 } | 680 } |
| 679 | 681 |
| 682 #endif |
| 683 |
| 680 } // namespace compiler | 684 } // namespace compiler |
| 681 } // namespace internal | 685 } // namespace internal |
| 682 } // namespace v8 | 686 } // namespace v8 |
| OLD | NEW |