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

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

Issue 73893003: Remove unused keyed store "force generic". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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/builtins.h » ('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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 __ bind(&notin); 849 __ bind(&notin);
850 // The unmapped lookup expects that the parameter map is in r3. 850 // The unmapped lookup expects that the parameter map is in r3.
851 MemOperand unmapped_location = 851 MemOperand unmapped_location =
852 GenerateUnmappedArgumentsLookup(masm, r1, r3, r4, &slow); 852 GenerateUnmappedArgumentsLookup(masm, r1, r3, r4, &slow);
853 __ str(r0, unmapped_location); 853 __ str(r0, unmapped_location);
854 __ add(r6, r3, r4); 854 __ add(r6, r3, r4);
855 __ mov(r9, r0); 855 __ mov(r9, r0);
856 __ RecordWrite(r3, r6, r9, kLRHasNotBeenSaved, kDontSaveFPRegs); 856 __ RecordWrite(r3, r6, r9, kLRHasNotBeenSaved, kDontSaveFPRegs);
857 __ Ret(); 857 __ Ret();
858 __ bind(&slow); 858 __ bind(&slow);
859 GenerateMiss(masm, MISS); 859 GenerateMiss(masm);
860 } 860 }
861 861
862 862
863 void KeyedCallIC::GenerateNonStrictArguments(MacroAssembler* masm, 863 void KeyedCallIC::GenerateNonStrictArguments(MacroAssembler* masm,
864 int argc) { 864 int argc) {
865 // ----------- S t a t e ------------- 865 // ----------- S t a t e -------------
866 // -- r2 : name 866 // -- r2 : name
867 // -- lr : return address 867 // -- lr : return address
868 // ----------------------------------- 868 // -----------------------------------
869 Label slow, notin; 869 Label slow, notin;
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 ExternalReference(IC_Utility(kKeyedLoadPropertyWithInterceptor), 1157 ExternalReference(IC_Utility(kKeyedLoadPropertyWithInterceptor),
1158 masm->isolate()), 1158 masm->isolate()),
1159 2, 1159 2,
1160 1); 1160 1);
1161 1161
1162 __ bind(&slow); 1162 __ bind(&slow);
1163 GenerateMiss(masm, MISS); 1163 GenerateMiss(masm, MISS);
1164 } 1164 }
1165 1165
1166 1166
1167 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm, ICMissMode miss_mode) { 1167 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
1168 // ---------- S t a t e -------------- 1168 // ---------- S t a t e --------------
1169 // -- r0 : value 1169 // -- r0 : value
1170 // -- r1 : key 1170 // -- r1 : key
1171 // -- r2 : receiver 1171 // -- r2 : receiver
1172 // -- lr : return address 1172 // -- lr : return address
1173 // ----------------------------------- 1173 // -----------------------------------
1174 1174
1175 // Push receiver, key and value for runtime call. 1175 // Push receiver, key and value for runtime call.
1176 __ Push(r2, r1, r0); 1176 __ Push(r2, r1, r0);
1177 1177
1178 ExternalReference ref = miss_mode == MISS_FORCE_GENERIC 1178 ExternalReference ref =
1179 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric), 1179 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate());
1180 masm->isolate())
1181 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate());
1182 __ TailCallExternalReference(ref, 3, 1); 1180 __ TailCallExternalReference(ref, 3, 1);
1183 } 1181 }
1184 1182
1185 1183
1186 void StoreIC::GenerateSlow(MacroAssembler* masm) { 1184 void StoreIC::GenerateSlow(MacroAssembler* masm) {
1187 // ---------- S t a t e -------------- 1185 // ---------- S t a t e --------------
1188 // -- r0 : value 1186 // -- r0 : value
1189 // -- r2 : key 1187 // -- r2 : key
1190 // -- r1 : receiver 1188 // -- r1 : receiver
1191 // -- lr : return address 1189 // -- lr : return address
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 } else { 1680 } else {
1683 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1681 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1684 patcher.EmitCondition(eq); 1682 patcher.EmitCondition(eq);
1685 } 1683 }
1686 } 1684 }
1687 1685
1688 1686
1689 } } // namespace v8::internal 1687 } } // namespace v8::internal
1690 1688
1691 #endif // V8_TARGET_ARCH_ARM 1689 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698