OLD | NEW |
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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 // -- r1 : receiver | 1187 // -- r1 : receiver |
1188 // -- lr : return address | 1188 // -- lr : return address |
1189 // ----------------------------------- | 1189 // ----------------------------------- |
1190 | 1190 |
1191 // Push receiver, key and value for runtime call. | 1191 // Push receiver, key and value for runtime call. |
1192 __ Push(r1, r2, r0); | 1192 __ Push(r1, r2, r0); |
1193 | 1193 |
1194 // The slow case calls into the runtime to complete the store without causing | 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. | 1195 // an IC miss that would otherwise cause a transition to the generic stub. |
1196 ExternalReference ref = | 1196 ExternalReference ref = |
1197 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); | 1197 ExternalReference(IC_Utility(kStoreIC_Slow), masm->isolate()); |
1198 __ TailCallExternalReference(ref, 3, 1); | 1198 __ TailCallExternalReference(ref, 3, 1); |
1199 } | 1199 } |
1200 | 1200 |
1201 | 1201 |
1202 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { | 1202 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { |
1203 // ---------- S t a t e -------------- | 1203 // ---------- S t a t e -------------- |
1204 // -- r0 : value | 1204 // -- r0 : value |
1205 // -- r1 : key | 1205 // -- r1 : key |
1206 // -- r2 : receiver | 1206 // -- r2 : receiver |
1207 // -- lr : return address | 1207 // -- lr : return address |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1695 } else { | 1695 } else { |
1696 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1696 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
1697 patcher.EmitCondition(eq); | 1697 patcher.EmitCondition(eq); |
1698 } | 1698 } |
1699 } | 1699 } |
1700 | 1700 |
1701 | 1701 |
1702 } } // namespace v8::internal | 1702 } } // namespace v8::internal |
1703 | 1703 |
1704 #endif // V8_TARGET_ARCH_ARM | 1704 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |