| 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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 MemOperand unmapped_location = | 854 MemOperand unmapped_location = |
| 855 GenerateUnmappedArgumentsLookup(masm, a1, a3, t0, &slow); | 855 GenerateUnmappedArgumentsLookup(masm, a1, a3, t0, &slow); |
| 856 __ sw(a0, unmapped_location); | 856 __ sw(a0, unmapped_location); |
| 857 __ mov(t5, a0); | 857 __ mov(t5, a0); |
| 858 ASSERT_EQ(unmapped_location.offset(), 0); | 858 ASSERT_EQ(unmapped_location.offset(), 0); |
| 859 __ RecordWrite(a3, unmapped_location.rm(), t5, | 859 __ RecordWrite(a3, unmapped_location.rm(), t5, |
| 860 kRAHasNotBeenSaved, kDontSaveFPRegs); | 860 kRAHasNotBeenSaved, kDontSaveFPRegs); |
| 861 __ Ret(USE_DELAY_SLOT); | 861 __ Ret(USE_DELAY_SLOT); |
| 862 __ mov(v0, a0); // (In delay slot) return the value stored in v0. | 862 __ mov(v0, a0); // (In delay slot) return the value stored in v0. |
| 863 __ bind(&slow); | 863 __ bind(&slow); |
| 864 GenerateMiss(masm, MISS); | 864 GenerateMiss(masm); |
| 865 } | 865 } |
| 866 | 866 |
| 867 | 867 |
| 868 void KeyedCallIC::GenerateNonStrictArguments(MacroAssembler* masm, | 868 void KeyedCallIC::GenerateNonStrictArguments(MacroAssembler* masm, |
| 869 int argc) { | 869 int argc) { |
| 870 // ----------- S t a t e ------------- | 870 // ----------- S t a t e ------------- |
| 871 // -- a2 : name | 871 // -- a2 : name |
| 872 // -- lr : return address | 872 // -- lr : return address |
| 873 // ----------------------------------- | 873 // ----------------------------------- |
| 874 Label slow, notin; | 874 Label slow, notin; |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 | 1450 |
| 1451 // Perform tail call to the entry. | 1451 // Perform tail call to the entry. |
| 1452 __ TailCallExternalReference(ExternalReference( | 1452 __ TailCallExternalReference(ExternalReference( |
| 1453 IC_Utility(kKeyedLoadPropertyWithInterceptor), masm->isolate()), 2, 1); | 1453 IC_Utility(kKeyedLoadPropertyWithInterceptor), masm->isolate()), 2, 1); |
| 1454 | 1454 |
| 1455 __ bind(&slow); | 1455 __ bind(&slow); |
| 1456 GenerateMiss(masm, MISS); | 1456 GenerateMiss(masm, MISS); |
| 1457 } | 1457 } |
| 1458 | 1458 |
| 1459 | 1459 |
| 1460 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm, ICMissMode miss_mode) { | 1460 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { |
| 1461 // ---------- S t a t e -------------- | 1461 // ---------- S t a t e -------------- |
| 1462 // -- a0 : value | 1462 // -- a0 : value |
| 1463 // -- a1 : key | 1463 // -- a1 : key |
| 1464 // -- a2 : receiver | 1464 // -- a2 : receiver |
| 1465 // -- ra : return address | 1465 // -- ra : return address |
| 1466 // ----------------------------------- | 1466 // ----------------------------------- |
| 1467 | 1467 |
| 1468 // Push receiver, key and value for runtime call. | 1468 // Push receiver, key and value for runtime call. |
| 1469 __ Push(a2, a1, a0); | 1469 __ Push(a2, a1, a0); |
| 1470 | 1470 |
| 1471 ExternalReference ref = miss_mode == MISS_FORCE_GENERIC | 1471 ExternalReference ref = |
| 1472 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric), | 1472 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); |
| 1473 masm->isolate()) | |
| 1474 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); | |
| 1475 __ TailCallExternalReference(ref, 3, 1); | 1473 __ TailCallExternalReference(ref, 3, 1); |
| 1476 } | 1474 } |
| 1477 | 1475 |
| 1478 | 1476 |
| 1479 void StoreIC::GenerateSlow(MacroAssembler* masm) { | 1477 void StoreIC::GenerateSlow(MacroAssembler* masm) { |
| 1480 // ---------- S t a t e -------------- | 1478 // ---------- S t a t e -------------- |
| 1481 // -- a0 : value | 1479 // -- a0 : value |
| 1482 // -- a2 : key | 1480 // -- a2 : key |
| 1483 // -- a1 : receiver | 1481 // -- a1 : receiver |
| 1484 // -- ra : return address | 1482 // -- ra : return address |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1690 } else { | 1688 } else { |
| 1691 ASSERT(Assembler::IsBne(branch_instr)); | 1689 ASSERT(Assembler::IsBne(branch_instr)); |
| 1692 patcher.ChangeBranchCondition(eq); | 1690 patcher.ChangeBranchCondition(eq); |
| 1693 } | 1691 } |
| 1694 } | 1692 } |
| 1695 | 1693 |
| 1696 | 1694 |
| 1697 } } // namespace v8::internal | 1695 } } // namespace v8::internal |
| 1698 | 1696 |
| 1699 #endif // V8_TARGET_ARCH_MIPS | 1697 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |