| 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 "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
| (...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 __ jmp(&return_label_); | 1611 __ jmp(&return_label_); |
| 1612 return; | 1612 return; |
| 1613 } else { | 1613 } else { |
| 1614 __ bind(&return_label_); | 1614 __ bind(&return_label_); |
| 1615 __ movq(rsp, rbp); // Move stack pointer back to frame pointer. | 1615 __ movq(rsp, rbp); // Move stack pointer back to frame pointer. |
| 1616 __ popq(rbp); // Pop caller's frame pointer. | 1616 __ popq(rbp); // Pop caller's frame pointer. |
| 1617 } | 1617 } |
| 1618 } | 1618 } |
| 1619 size_t pop_size = descriptor->StackParameterCount() * kPointerSize; | 1619 size_t pop_size = descriptor->StackParameterCount() * kPointerSize; |
| 1620 // Might need rcx for scratch if pop_size is too big. | 1620 // Might need rcx for scratch if pop_size is too big. |
| 1621 DCHECK_EQ(0, descriptor->CalleeSavedRegisters() & rcx.bit()); | 1621 DCHECK_EQ(0u, descriptor->CalleeSavedRegisters() & rcx.bit()); |
| 1622 __ Ret(static_cast<int>(pop_size), rcx); | 1622 __ Ret(static_cast<int>(pop_size), rcx); |
| 1623 } | 1623 } |
| 1624 | 1624 |
| 1625 | 1625 |
| 1626 void CodeGenerator::AssembleMove(InstructionOperand* source, | 1626 void CodeGenerator::AssembleMove(InstructionOperand* source, |
| 1627 InstructionOperand* destination) { | 1627 InstructionOperand* destination) { |
| 1628 X64OperandConverter g(this, NULL); | 1628 X64OperandConverter g(this, NULL); |
| 1629 // Dispatch on the source and destination operand kinds. Not all | 1629 // Dispatch on the source and destination operand kinds. Not all |
| 1630 // combinations are possible. | 1630 // combinations are possible. |
| 1631 if (source->IsRegister()) { | 1631 if (source->IsRegister()) { |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1812 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1813 __ Nop(padding_size); | 1813 __ Nop(padding_size); |
| 1814 } | 1814 } |
| 1815 } | 1815 } |
| 1816 | 1816 |
| 1817 #undef __ | 1817 #undef __ |
| 1818 | 1818 |
| 1819 } // namespace compiler | 1819 } // namespace compiler |
| 1820 } // namespace internal | 1820 } // namespace internal |
| 1821 } // namespace v8 | 1821 } // namespace v8 |
| OLD | NEW |