Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/x64/deoptimizer-x64.cc

Issue 17550005: Distinguish times_8 and times_pointer_size usage for X64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698