| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); | 608 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
| 609 __ cmp(r0, ip); | 609 __ cmp(r0, ip); |
| 610 // In case the loaded value is the_hole we have to consult GetProperty | 610 // In case the loaded value is the_hole we have to consult GetProperty |
| 611 // to ensure the prototype chain is searched. | 611 // to ensure the prototype chain is searched. |
| 612 __ b(eq, &slow); | 612 __ b(eq, &slow); |
| 613 | 613 |
| 614 __ Ret(); | 614 __ Ret(); |
| 615 } | 615 } |
| 616 | 616 |
| 617 | 617 |
| 618 void KeyedLoadIC::GenerateExternalArray(MacroAssembler* masm, |
| 619 ExternalArrayType array_type) { |
| 620 // TODO(476): port specialized code. |
| 621 GenerateGeneric(masm); |
| 622 } |
| 623 |
| 624 |
| 618 void KeyedStoreIC::Generate(MacroAssembler* masm, | 625 void KeyedStoreIC::Generate(MacroAssembler* masm, |
| 619 const ExternalReference& f) { | 626 const ExternalReference& f) { |
| 620 // ---------- S t a t e -------------- | 627 // ---------- S t a t e -------------- |
| 621 // -- r0 : value | 628 // -- r0 : value |
| 622 // -- lr : return address | 629 // -- lr : return address |
| 623 // -- sp[0] : key | 630 // -- sp[0] : key |
| 624 // -- sp[1] : receiver | 631 // -- sp[1] : receiver |
| 625 | 632 |
| 626 __ ldm(ia, sp, r2.bit() | r3.bit()); | 633 __ ldm(ia, sp, r2.bit() | r3.bit()); |
| 627 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit()); | 634 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit()); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 __ b(eq, &exit); | 748 __ b(eq, &exit); |
| 742 // Update write barrier for the elements array address. | 749 // Update write barrier for the elements array address. |
| 743 __ sub(r1, r2, Operand(r3)); | 750 __ sub(r1, r2, Operand(r3)); |
| 744 __ RecordWrite(r3, r1, r2); | 751 __ RecordWrite(r3, r1, r2); |
| 745 | 752 |
| 746 __ bind(&exit); | 753 __ bind(&exit); |
| 747 __ Ret(); | 754 __ Ret(); |
| 748 } | 755 } |
| 749 | 756 |
| 750 | 757 |
| 758 void KeyedStoreIC::GenerateExternalArray(MacroAssembler* masm, |
| 759 ExternalArrayType array_type) { |
| 760 // TODO(476): port specialized code. |
| 761 GenerateGeneric(masm); |
| 762 } |
| 763 |
| 764 |
| 751 void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* masm) { | 765 void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* masm) { |
| 752 // ---------- S t a t e -------------- | 766 // ---------- S t a t e -------------- |
| 753 // -- r0 : value | 767 // -- r0 : value |
| 754 // -- lr : return address | 768 // -- lr : return address |
| 755 // -- sp[0] : key | 769 // -- sp[0] : key |
| 756 // -- sp[1] : receiver | 770 // -- sp[1] : receiver |
| 757 // ----------- S t a t e ------------- | 771 // ----------- S t a t e ------------- |
| 758 | 772 |
| 759 __ ldm(ia, sp, r2.bit() | r3.bit()); | 773 __ ldm(ia, sp, r2.bit() | r3.bit()); |
| 760 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit()); | 774 __ stm(db_w, sp, r0.bit() | r2.bit() | r3.bit()); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 | 829 |
| 816 // Perform tail call to the entry. | 830 // Perform tail call to the entry. |
| 817 __ TailCallRuntime(f, 3, 1); | 831 __ TailCallRuntime(f, 3, 1); |
| 818 } | 832 } |
| 819 | 833 |
| 820 | 834 |
| 821 #undef __ | 835 #undef __ |
| 822 | 836 |
| 823 | 837 |
| 824 } } // namespace v8::internal | 838 } } // namespace v8::internal |
| OLD | NEW |