| 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 | |
| 14 // Adds X64-specific methods for generating operands. | 12 // Adds X64-specific methods for generating operands. |
| 15 class X64OperandGenerator V8_FINAL : public OperandGenerator { | 13 class X64OperandGenerator V8_FINAL : public OperandGenerator { |
| 16 public: | 14 public: |
| 17 explicit X64OperandGenerator(InstructionSelector* selector) | 15 explicit X64OperandGenerator(InstructionSelector* selector) |
| 18 : OperandGenerator(selector) {} | 16 : OperandGenerator(selector) {} |
| 19 | 17 |
| 20 InstructionOperand* TempRegister(Register reg) { | 18 InstructionOperand* TempRegister(Register reg) { |
| 21 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, | 19 return new (zone()) UnallocatedOperand(UnallocatedOperand::FIXED_REGISTER, |
| 22 Register::ToAllocationIndex(reg)); | 20 Register::ToAllocationIndex(reg)); |
| 23 } | 21 } |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 } | 710 } |
| 713 | 711 |
| 714 // Caller clean up of stack for C-style calls. | 712 // Caller clean up of stack for C-style calls. |
| 715 if (descriptor->kind() == CallDescriptor::kCallAddress && | 713 if (descriptor->kind() == CallDescriptor::kCallAddress && |
| 716 buffer.pushed_count > 0) { | 714 buffer.pushed_count > 0) { |
| 717 DCHECK(deoptimization == NULL && continuation == NULL); | 715 DCHECK(deoptimization == NULL && continuation == NULL); |
| 718 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL); | 716 Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL); |
| 719 } | 717 } |
| 720 } | 718 } |
| 721 | 719 |
| 722 #endif | |
| 723 | |
| 724 } // namespace compiler | 720 } // namespace compiler |
| 725 } // namespace internal | 721 } // namespace internal |
| 726 } // namespace v8 | 722 } // namespace v8 |
| OLD | NEW |