| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/compilation-info.h" | 9 #include "src/compilation-info.h" |
| 10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
| (...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2668 __ Ret(static_cast<int>(pop_size), rcx); | 2668 __ Ret(static_cast<int>(pop_size), rcx); |
| 2669 } else { | 2669 } else { |
| 2670 Register pop_reg = g.ToRegister(pop); | 2670 Register pop_reg = g.ToRegister(pop); |
| 2671 Register scratch_reg = pop_reg.is(rcx) ? rdx : rcx; | 2671 Register scratch_reg = pop_reg.is(rcx) ? rdx : rcx; |
| 2672 __ popq(scratch_reg); | 2672 __ popq(scratch_reg); |
| 2673 __ leaq(rsp, Operand(rsp, pop_reg, times_8, static_cast<int>(pop_size))); | 2673 __ leaq(rsp, Operand(rsp, pop_reg, times_8, static_cast<int>(pop_size))); |
| 2674 __ jmp(scratch_reg); | 2674 __ jmp(scratch_reg); |
| 2675 } | 2675 } |
| 2676 } | 2676 } |
| 2677 | 2677 |
| 2678 void CodeGenerator::FinishCode() {} |
| 2678 | 2679 |
| 2679 void CodeGenerator::AssembleMove(InstructionOperand* source, | 2680 void CodeGenerator::AssembleMove(InstructionOperand* source, |
| 2680 InstructionOperand* destination) { | 2681 InstructionOperand* destination) { |
| 2681 X64OperandConverter g(this, nullptr); | 2682 X64OperandConverter g(this, nullptr); |
| 2682 // Dispatch on the source and destination operand kinds. Not all | 2683 // Dispatch on the source and destination operand kinds. Not all |
| 2683 // combinations are possible. | 2684 // combinations are possible. |
| 2684 if (source->IsRegister()) { | 2685 if (source->IsRegister()) { |
| 2685 DCHECK(destination->IsRegister() || destination->IsStackSlot()); | 2686 DCHECK(destination->IsRegister() || destination->IsStackSlot()); |
| 2686 Register src = g.ToRegister(source); | 2687 Register src = g.ToRegister(source); |
| 2687 if (destination->IsRegister()) { | 2688 if (destination->IsRegister()) { |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2931 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 2932 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 2932 __ Nop(padding_size); | 2933 __ Nop(padding_size); |
| 2933 } | 2934 } |
| 2934 } | 2935 } |
| 2935 | 2936 |
| 2936 #undef __ | 2937 #undef __ |
| 2937 | 2938 |
| 2938 } // namespace compiler | 2939 } // namespace compiler |
| 2939 } // namespace internal | 2940 } // namespace internal |
| 2940 } // namespace v8 | 2941 } // namespace v8 |
| OLD | NEW |