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

Side by Side Diff: src/arm/ic-arm.cc

Issue 575022: Eliminate unused function KeyedStoreIC::GenerateExtendStorage, and unused par... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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 | « no previous file | src/arm/stub-cache-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 } 781 }
782 782
783 783
784 void KeyedStoreIC::GenerateExternalArray(MacroAssembler* masm, 784 void KeyedStoreIC::GenerateExternalArray(MacroAssembler* masm,
785 ExternalArrayType array_type) { 785 ExternalArrayType array_type) {
786 // TODO(476): port specialized code. 786 // TODO(476): port specialized code.
787 GenerateGeneric(masm); 787 GenerateGeneric(masm);
788 } 788 }
789 789
790 790
791 void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* masm) {
792 // ---------- S t a t e --------------
793 // -- r0 : value
794 // -- lr : return address
795 // -- sp[0] : key
796 // -- sp[1] : receiver
797 // ----------- S t a t e -------------
798
799 __ ldm(ia, sp, r2.bit() | r3.bit());
800 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit());
801
802 // Perform tail call to the entry.
803 __ TailCallRuntime(
804 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3, 1);
805 }
806
807
808 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 791 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
809 // ----------- S t a t e ------------- 792 // ----------- S t a t e -------------
810 // -- r0 : value 793 // -- r0 : value
811 // -- r2 : name 794 // -- r2 : name
812 // -- lr : return address 795 // -- lr : return address
813 // -- [sp] : receiver 796 // -- [sp] : receiver
814 // ----------------------------------- 797 // -----------------------------------
815 798
816 // Get the receiver from the stack and probe the stub cache. 799 // Get the receiver from the stack and probe the stub cache.
817 __ ldr(r1, MemOperand(sp)); 800 __ ldr(r1, MemOperand(sp));
818 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC, 801 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC,
819 NOT_IN_LOOP, 802 NOT_IN_LOOP,
820 MONOMORPHIC); 803 MONOMORPHIC);
821 StubCache::GenerateProbe(masm, flags, r1, r2, r3, no_reg); 804 StubCache::GenerateProbe(masm, flags, r1, r2, r3, no_reg);
822 805
823 // Cache miss: Jump to runtime. 806 // Cache miss: Jump to runtime.
824 GenerateMiss(masm); 807 GenerateMiss(masm);
825 } 808 }
826 809
827 810
828 void StoreIC::GenerateExtendStorage(MacroAssembler* masm) {
829 // ----------- S t a t e -------------
830 // -- r0 : value
831 // -- r2 : name
832 // -- lr : return address
833 // -- [sp] : receiver
834 // -----------------------------------
835
836 __ ldr(r3, MemOperand(sp)); // copy receiver
837 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit());
838
839 // Perform tail call to the entry.
840 __ TailCallRuntime(
841 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3, 1);
842 }
843
844
845 void StoreIC::GenerateMiss(MacroAssembler* masm) { 811 void StoreIC::GenerateMiss(MacroAssembler* masm) {
846 // ----------- S t a t e ------------- 812 // ----------- S t a t e -------------
847 // -- r0 : value 813 // -- r0 : value
848 // -- r2 : name 814 // -- r2 : name
849 // -- lr : return address 815 // -- lr : return address
850 // -- [sp] : receiver 816 // -- [sp] : receiver
851 // ----------------------------------- 817 // -----------------------------------
852 818
853 __ ldr(r3, MemOperand(sp)); // copy receiver 819 __ ldr(r3, MemOperand(sp)); // copy receiver
854 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit()); 820 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit());
855 821
856 // Perform tail call to the entry. 822 // Perform tail call to the entry.
857 __ TailCallRuntime(ExternalReference(IC_Utility(kStoreIC_Miss)), 3, 1); 823 __ TailCallRuntime(ExternalReference(IC_Utility(kStoreIC_Miss)), 3, 1);
858 } 824 }
859 825
860 826
861 #undef __ 827 #undef __
862 828
863 829
864 } } // namespace v8::internal 830 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698