| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 __ j(not_zero, &inner_push_loop); | 749 __ j(not_zero, &inner_push_loop); |
| 750 __ addq(rax, Immediate(kPointerSize)); | 750 __ addq(rax, Immediate(kPointerSize)); |
| 751 __ cmpq(rax, rdx); | 751 __ cmpq(rax, rdx); |
| 752 __ j(below, &outer_push_loop); | 752 __ j(below, &outer_push_loop); |
| 753 | 753 |
| 754 // In case of OSR, we have to restore the XMM registers. | 754 // In case of OSR, we have to restore the XMM registers. |
| 755 if (type() == OSR) { | 755 if (type() == OSR) { |
| 756 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { | 756 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; ++i) { |
| 757 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); | 757 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); |
| 758 int src_offset = i * kDoubleSize + double_regs_offset; | 758 int src_offset = i * kDoubleSize + double_regs_offset; |
| 759 __ movsd(xmm_reg, Operand(rbx, src_offset)); | 759 __ LoadDbl(xmm_reg, Operand(rbx, src_offset)); |
| 760 } | 760 } |
| 761 } | 761 } |
| 762 | 762 |
| 763 // Push state, pc, and continuation from the last output frame. | 763 // Push state, pc, and continuation from the last output frame. |
| 764 if (type() != OSR) { | 764 if (type() != OSR) { |
| 765 __ push(Operand(rbx, FrameDescription::state_offset())); | 765 __ push(Operand(rbx, FrameDescription::state_offset())); |
| 766 } | 766 } |
| 767 __ push(Operand(rbx, FrameDescription::pc_offset())); | 767 __ push(Operand(rbx, FrameDescription::pc_offset())); |
| 768 __ push(Operand(rbx, FrameDescription::continuation_offset())); | 768 __ push(Operand(rbx, FrameDescription::continuation_offset())); |
| 769 | 769 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 } | 806 } |
| 807 __ bind(&done); | 807 __ bind(&done); |
| 808 } | 808 } |
| 809 | 809 |
| 810 #undef __ | 810 #undef __ |
| 811 | 811 |
| 812 | 812 |
| 813 } } // namespace v8::internal | 813 } } // namespace v8::internal |
| 814 | 814 |
| 815 #endif // V8_TARGET_ARCH_X64 | 815 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |