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

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

Issue 6716018: X64: Optimize access to external references. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merge with tip of bleeding edge. Created 9 years, 9 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/code-stubs-x64.cc ('k') | src/x64/ic-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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 // Do not restore rsp, simply pop the value into the next register 753 // Do not restore rsp, simply pop the value into the next register
754 // and overwrite this afterwards. 754 // and overwrite this afterwards.
755 if (r.is(rsp)) { 755 if (r.is(rsp)) {
756 ASSERT(i > 0); 756 ASSERT(i > 0);
757 r = Register::toRegister(i - 1); 757 r = Register::toRegister(i - 1);
758 } 758 }
759 __ pop(r); 759 __ pop(r);
760 } 760 }
761 761
762 // Set up the roots register. 762 // Set up the roots register.
763 ExternalReference roots_address = ExternalReference::roots_address(isolate);
764 __ InitializeRootRegister(); 763 __ InitializeRootRegister();
765 __ InitializeSmiConstantRegister(); 764 __ InitializeSmiConstantRegister();
766 765
767 // Return to the continuation point. 766 // Return to the continuation point.
768 __ ret(0); 767 __ ret(0);
769 } 768 }
770 769
771 770
772 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { 771 void Deoptimizer::TableEntryGenerator::GeneratePrologue() {
773 // Create a sequence of deoptimization entries. 772 // Create a sequence of deoptimization entries.
774 Label done; 773 Label done;
775 for (int i = 0; i < count(); i++) { 774 for (int i = 0; i < count(); i++) {
776 int start = masm()->pc_offset(); 775 int start = masm()->pc_offset();
777 USE(start); 776 USE(start);
778 __ push_imm32(i); 777 __ push_imm32(i);
779 __ jmp(&done); 778 __ jmp(&done);
780 ASSERT(masm()->pc_offset() - start == table_entry_size_); 779 ASSERT(masm()->pc_offset() - start == table_entry_size_);
781 } 780 }
782 __ bind(&done); 781 __ bind(&done);
783 } 782 }
784 783
785 #undef __ 784 #undef __
786 785
787 786
788 } } // namespace v8::internal 787 } } // namespace v8::internal
789 788
790 #endif // V8_TARGET_ARCH_X64 789 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698