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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 } | 541 } |
542 __ pop(rax); | 542 __ pop(rax); |
543 | 543 |
544 // Replace the current frame with the output frames. | 544 // Replace the current frame with the output frames. |
545 Label outer_push_loop, inner_push_loop, | 545 Label outer_push_loop, inner_push_loop, |
546 outer_loop_header, inner_loop_header; | 546 outer_loop_header, inner_loop_header; |
547 // Outer loop state: rax = current FrameDescription**, rdx = one past the | 547 // Outer loop state: rax = current FrameDescription**, rdx = one past the |
548 // last FrameDescription**. | 548 // last FrameDescription**. |
549 __ movl(rdx, Operand(rax, Deoptimizer::output_count_offset())); | 549 __ movl(rdx, Operand(rax, Deoptimizer::output_count_offset())); |
550 __ movq(rax, Operand(rax, Deoptimizer::output_offset())); | 550 __ movq(rax, Operand(rax, Deoptimizer::output_offset())); |
551 __ lea(rdx, Operand(rax, rdx, times_8, 0)); | 551 __ lea(rdx, Operand(rax, rdx, times_pointer_size, 0)); |
552 __ jmp(&outer_loop_header); | 552 __ jmp(&outer_loop_header); |
553 __ bind(&outer_push_loop); | 553 __ bind(&outer_push_loop); |
554 // Inner loop state: rbx = current FrameDescription*, rcx = loop index. | 554 // Inner loop state: rbx = current FrameDescription*, rcx = loop index. |
555 __ movq(rbx, Operand(rax, 0)); | 555 __ movq(rbx, Operand(rax, 0)); |
556 __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset())); | 556 __ movq(rcx, Operand(rbx, FrameDescription::frame_size_offset())); |
557 __ jmp(&inner_loop_header); | 557 __ jmp(&inner_loop_header); |
558 __ bind(&inner_push_loop); | 558 __ bind(&inner_push_loop); |
559 __ subq(rcx, Immediate(sizeof(intptr_t))); | 559 __ subq(rcx, Immediate(sizeof(intptr_t))); |
560 __ push(Operand(rbx, rcx, times_1, FrameDescription::frame_content_offset())); | 560 __ push(Operand(rbx, rcx, times_1, FrameDescription::frame_content_offset())); |
561 __ bind(&inner_loop_header); | 561 __ bind(&inner_loop_header); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 } | 618 } |
619 __ bind(&done); | 619 __ bind(&done); |
620 } | 620 } |
621 | 621 |
622 #undef __ | 622 #undef __ |
623 | 623 |
624 | 624 |
625 } } // namespace v8::internal | 625 } } // namespace v8::internal |
626 | 626 |
627 #endif // V8_TARGET_ARCH_X64 | 627 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |