| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 __ subq(rcx, Immediate(sizeof(intptr_t))); | 1132 __ subq(rcx, Immediate(sizeof(intptr_t))); |
| 1133 __ push(Operand(rbx, rcx, times_1, FrameDescription::frame_content_offset())); | 1133 __ push(Operand(rbx, rcx, times_1, FrameDescription::frame_content_offset())); |
| 1134 __ bind(&inner_loop_header); | 1134 __ bind(&inner_loop_header); |
| 1135 __ testq(rcx, rcx); | 1135 __ testq(rcx, rcx); |
| 1136 __ j(not_zero, &inner_push_loop); | 1136 __ j(not_zero, &inner_push_loop); |
| 1137 __ addq(rax, Immediate(kPointerSize)); | 1137 __ addq(rax, Immediate(kPointerSize)); |
| 1138 __ bind(&outer_loop_header); | 1138 __ bind(&outer_loop_header); |
| 1139 __ cmpq(rax, rdx); | 1139 __ cmpq(rax, rdx); |
| 1140 __ j(below, &outer_push_loop); | 1140 __ j(below, &outer_push_loop); |
| 1141 | 1141 |
| 1142 // In case of OSR, we have to restore the XMM registers. | 1142 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) { |
| 1143 if (type() == OSR) { | 1143 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); |
| 1144 for (int i = 0; i < XMMRegister::NumAllocatableRegisters(); ++i) { | 1144 int src_offset = i * kDoubleSize + double_regs_offset; |
| 1145 XMMRegister xmm_reg = XMMRegister::FromAllocationIndex(i); | 1145 __ movsd(xmm_reg, Operand(rbx, src_offset)); |
| 1146 int src_offset = i * kDoubleSize + double_regs_offset; | |
| 1147 __ movsd(xmm_reg, Operand(rbx, src_offset)); | |
| 1148 } | |
| 1149 } | 1146 } |
| 1150 | 1147 |
| 1151 // Push state, pc, and continuation from the last output frame. | 1148 // Push state, pc, and continuation from the last output frame. |
| 1152 if (type() != OSR) { | 1149 if (type() != OSR) { |
| 1153 __ push(Operand(rbx, FrameDescription::state_offset())); | 1150 __ push(Operand(rbx, FrameDescription::state_offset())); |
| 1154 } | 1151 } |
| 1155 __ push(Operand(rbx, FrameDescription::pc_offset())); | 1152 __ push(Operand(rbx, FrameDescription::pc_offset())); |
| 1156 __ push(Operand(rbx, FrameDescription::continuation_offset())); | 1153 __ push(Operand(rbx, FrameDescription::continuation_offset())); |
| 1157 | 1154 |
| 1158 // Push the registers from the last output frame. | 1155 // Push the registers from the last output frame. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1194 } | 1191 } |
| 1195 __ bind(&done); | 1192 __ bind(&done); |
| 1196 } | 1193 } |
| 1197 | 1194 |
| 1198 #undef __ | 1195 #undef __ |
| 1199 | 1196 |
| 1200 | 1197 |
| 1201 } } // namespace v8::internal | 1198 } } // namespace v8::internal |
| 1202 | 1199 |
| 1203 #endif // V8_TARGET_ARCH_X64 | 1200 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |