OLD | NEW |
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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 __ Push(r2, r1, r0); | 1237 __ Push(r2, r1, r0); |
1238 | 1238 |
1239 // The slow case calls into the runtime to complete the store without causing | 1239 // The slow case calls into the runtime to complete the store without causing |
1240 // an IC miss that would otherwise cause a transition to the generic stub. | 1240 // an IC miss that would otherwise cause a transition to the generic stub. |
1241 ExternalReference ref = | 1241 ExternalReference ref = |
1242 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); | 1242 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); |
1243 __ TailCallExternalReference(ref, 3, 1); | 1243 __ TailCallExternalReference(ref, 3, 1); |
1244 } | 1244 } |
1245 | 1245 |
1246 | 1246 |
| 1247 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) { |
| 1248 // ---------- S t a t e -------------- |
| 1249 // -- r2 : receiver |
| 1250 // -- lr : return address |
| 1251 // ----------------------------------- |
| 1252 // Must return the modified receiver in r0. |
| 1253 |
| 1254 __ push(r2); |
| 1255 __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1); |
| 1256 } |
| 1257 |
| 1258 |
| 1259 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject( |
| 1260 MacroAssembler* masm) { |
| 1261 // ---------- S t a t e -------------- |
| 1262 // -- r2 : receiver |
| 1263 // -- lr : return address |
| 1264 // ----------------------------------- |
| 1265 // Must return the modified receiver in r0. |
| 1266 |
| 1267 __ push(r2); |
| 1268 __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1); |
| 1269 } |
| 1270 |
| 1271 |
1247 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, | 1272 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, |
1248 StrictModeFlag strict_mode) { | 1273 StrictModeFlag strict_mode) { |
1249 // ---------- S t a t e -------------- | 1274 // ---------- S t a t e -------------- |
1250 // -- r0 : value | 1275 // -- r0 : value |
1251 // -- r1 : key | 1276 // -- r1 : key |
1252 // -- r2 : receiver | 1277 // -- r2 : receiver |
1253 // -- lr : return address | 1278 // -- lr : return address |
1254 // ----------------------------------- | 1279 // ----------------------------------- |
1255 | 1280 |
1256 // Push receiver, key and value for runtime call. | 1281 // Push receiver, key and value for runtime call. |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 Register reg = Assembler::GetRn(instr_at_patch); | 1691 Register reg = Assembler::GetRn(instr_at_patch); |
1667 patcher.masm()->tst(reg, Operand(kSmiTagMask)); | 1692 patcher.masm()->tst(reg, Operand(kSmiTagMask)); |
1668 patcher.EmitCondition(eq); | 1693 patcher.EmitCondition(eq); |
1669 } | 1694 } |
1670 } | 1695 } |
1671 | 1696 |
1672 | 1697 |
1673 } } // namespace v8::internal | 1698 } } // namespace v8::internal |
1674 | 1699 |
1675 #endif // V8_TARGET_ARCH_ARM | 1700 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |