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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 // -- a1 : receiver | 1447 // -- a1 : receiver |
1448 // -- ra : return address | 1448 // -- ra : return address |
1449 // ----------------------------------- | 1449 // ----------------------------------- |
1450 | 1450 |
1451 // Push receiver, key and value for runtime call. | 1451 // Push receiver, key and value for runtime call. |
1452 __ Push(a1, a2, a0); | 1452 __ Push(a1, a2, a0); |
1453 | 1453 |
1454 // The slow case calls into the runtime to complete the store without causing | 1454 // The slow case calls into the runtime to complete the store without causing |
1455 // an IC miss that would otherwise cause a transition to the generic stub. | 1455 // an IC miss that would otherwise cause a transition to the generic stub. |
1456 ExternalReference ref = | 1456 ExternalReference ref = |
1457 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); | 1457 ExternalReference(IC_Utility(kStoreIC_Slow), masm->isolate()); |
1458 __ TailCallExternalReference(ref, 3, 1); | 1458 __ TailCallExternalReference(ref, 3, 1); |
1459 } | 1459 } |
1460 | 1460 |
1461 | 1461 |
1462 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { | 1462 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { |
1463 // ---------- S t a t e -------------- | 1463 // ---------- S t a t e -------------- |
1464 // -- a0 : value | 1464 // -- a0 : value |
1465 // -- a1 : key | 1465 // -- a1 : key |
1466 // -- a2 : receiver | 1466 // -- a2 : receiver |
1467 // -- ra : return address | 1467 // -- ra : return address |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 } else { | 1698 } else { |
1699 ASSERT(Assembler::IsBne(branch_instr)); | 1699 ASSERT(Assembler::IsBne(branch_instr)); |
1700 patcher.ChangeBranchCondition(eq); | 1700 patcher.ChangeBranchCondition(eq); |
1701 } | 1701 } |
1702 } | 1702 } |
1703 | 1703 |
1704 | 1704 |
1705 } } // namespace v8::internal | 1705 } } // namespace v8::internal |
1706 | 1706 |
1707 #endif // V8_TARGET_ARCH_MIPS | 1707 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |