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

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

Issue 6883159: X64: Adding macro to load double from memory, and use SSE3 instruction if present. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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/disasm-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 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
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
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
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698