| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 | 374 |
| 375 __ CallCFunction(ExternalReference::new_deoptimizer_function(), 5); | 375 __ CallCFunction(ExternalReference::new_deoptimizer_function(), 5); |
| 376 // Preserve deoptimizer object in register rax and get the input | 376 // Preserve deoptimizer object in register rax and get the input |
| 377 // frame descriptor pointer. | 377 // frame descriptor pointer. |
| 378 __ movq(rbx, Operand(rax, Deoptimizer::input_offset())); | 378 __ movq(rbx, Operand(rax, Deoptimizer::input_offset())); |
| 379 | 379 |
| 380 // Fill in the input registers. | 380 // Fill in the input registers. |
| 381 for (int i = kNumberOfRegisters -1; i >= 0; i--) { | 381 for (int i = kNumberOfRegisters -1; i >= 0; i--) { |
| 382 int offset = (i * kPointerSize) + FrameDescription::registers_offset(); | 382 int offset = (i * kPointerSize) + FrameDescription::registers_offset(); |
| 383 __ pop(Operand(rbx, offset)); | 383 __ pop(Operand(rbx, offset)); |
| 384 // __ movq(rcx, Operand(rsp, (kNumberOfRegisters - 1 - i) * kPointerSize)); | |
| 385 // __ movq(Operand(rbx, offset), rcx); | |
| 386 } | 384 } |
| 387 | 385 |
| 388 // Fill in the double input registers. | 386 // Fill in the double input registers. |
| 389 int double_regs_offset = FrameDescription::double_registers_offset(); | 387 int double_regs_offset = FrameDescription::double_registers_offset(); |
| 390 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) { | 388 for (int i = 0; i < XMMRegister::kNumAllocatableRegisters; i++) { |
| 391 int dst_offset = i * kDoubleSize + double_regs_offset; | 389 int dst_offset = i * kDoubleSize + double_regs_offset; |
| 392 __ pop(Operand(rbx, dst_offset)); | 390 __ pop(Operand(rbx, dst_offset)); |
| 393 } | 391 } |
| 394 | 392 |
| 395 // Remove the bailout id and the general purpose registers from the stack. | 393 // Remove the bailout id from the stack. |
| 396 if (type() == EAGER) { | 394 if (type() == EAGER) { |
| 397 __ addq(rsp, Immediate(kPointerSize)); | 395 __ addq(rsp, Immediate(kPointerSize)); |
| 398 } else { | 396 } else { |
| 399 __ addq(rsp, Immediate(2 * kPointerSize)); | 397 __ addq(rsp, Immediate(2 * kPointerSize)); |
| 400 } | 398 } |
| 401 | 399 |
| 402 // Compute a pointer to the unwinding limit in register ecx; that is | 400 // Compute a pointer to the unwinding limit in register ecx; that is |
| 403 // the first stack slot not part of the input frame. | 401 // the first stack slot not part of the input frame. |
| 404 __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset())); | 402 __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset())); |
| 405 __ addq(rcx, rsp); | 403 __ addq(rcx, rsp); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 } | 499 } |
| 502 __ bind(&done); | 500 __ bind(&done); |
| 503 } | 501 } |
| 504 | 502 |
| 505 #undef __ | 503 #undef __ |
| 506 | 504 |
| 507 | 505 |
| 508 } } // namespace v8::internal | 506 } } // namespace v8::internal |
| 509 | 507 |
| 510 #endif // V8_TARGET_ARCH_X64 | 508 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |