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

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

Issue 14850006: Use mutable heapnumbers to store doubles in fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to ARM and x64 Created 7 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/arm/full-codegen-arm.cc ('k') | src/arm/lithium-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 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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 __ Push(r2, r1, r0); 1173 __ Push(r2, r1, r0);
1174 1174
1175 ExternalReference ref = miss_mode == MISS_FORCE_GENERIC 1175 ExternalReference ref = miss_mode == MISS_FORCE_GENERIC
1176 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric), 1176 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric),
1177 masm->isolate()) 1177 masm->isolate())
1178 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); 1178 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate());
1179 __ TailCallExternalReference(ref, 3, 1); 1179 __ TailCallExternalReference(ref, 3, 1);
1180 } 1180 }
1181 1181
1182 1182
1183 void StoreIC::GenerateSlow(MacroAssembler* masm) {
1184 // ---------- S t a t e --------------
1185 // -- r0 : value
1186 // -- r2 : key
1187 // -- r1 : receiver
1188 // -- lr : return address
1189 // -----------------------------------
1190
1191 // Push receiver, key and value for runtime call.
1192 __ Push(r1, r2, r0);
1193
1194 // The slow case calls into the runtime to complete the store without causing
1195 // an IC miss that would otherwise cause a transition to the generic stub.
1196 ExternalReference ref =
1197 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate());
1198 __ TailCallExternalReference(ref, 3, 1);
1199 }
1200
1201
1183 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { 1202 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
1184 // ---------- S t a t e -------------- 1203 // ---------- S t a t e --------------
1185 // -- r0 : value 1204 // -- r0 : value
1186 // -- r1 : key 1205 // -- r1 : key
1187 // -- r2 : receiver 1206 // -- r2 : receiver
1188 // -- lr : return address 1207 // -- lr : return address
1189 // ----------------------------------- 1208 // -----------------------------------
1190 1209
1191 // Push receiver, key and value for runtime call. 1210 // Push receiver, key and value for runtime call.
1192 __ Push(r2, r1, r0); 1211 __ Push(r2, r1, r0);
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 } else { 1695 } else {
1677 ASSERT(Assembler::GetCondition(branch_instr) == ne); 1696 ASSERT(Assembler::GetCondition(branch_instr) == ne);
1678 patcher.EmitCondition(eq); 1697 patcher.EmitCondition(eq);
1679 } 1698 }
1680 } 1699 }
1681 1700
1682 1701
1683 } } // namespace v8::internal 1702 } } // namespace v8::internal
1684 1703
1685 #endif // V8_TARGET_ARCH_ARM 1704 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698