| 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 __ push(ecx); | 747 __ push(ecx); |
| 748 | 748 |
| 749 // Do tail-call to runtime routine. | 749 // Do tail-call to runtime routine. |
| 750 __ TailCallRuntime(f, 3); | 750 __ TailCallRuntime(f, 3); |
| 751 } | 751 } |
| 752 | 752 |
| 753 | 753 |
| 754 void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* masm) { | 754 void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* masm) { |
| 755 // ----------- S t a t e ------------- | 755 // ----------- S t a t e ------------- |
| 756 // -- eax : value | 756 // -- eax : value |
| 757 // -- ecx : transition map |
| 757 // -- esp[0] : return address | 758 // -- esp[0] : return address |
| 758 // -- esp[4] : key | 759 // -- esp[4] : key |
| 759 // -- esp[8] : receiver | 760 // -- esp[8] : receiver |
| 760 // ----------------------------------- | 761 // ----------------------------------- |
| 761 | 762 |
| 762 // Move the return address below the arguments. | 763 // Move the return address below the arguments. |
| 763 __ pop(ecx); | 764 __ pop(ebx); |
| 764 __ push(Operand(esp, 1 * kPointerSize)); | 765 __ push(Operand(esp, 1 * kPointerSize)); |
| 765 __ push(Operand(esp, 1 * kPointerSize)); | 766 __ push(ecx); |
| 766 __ push(eax); | 767 __ push(eax); |
| 767 __ push(ecx); | 768 __ push(ebx); |
| 768 | 769 |
| 769 // Do tail-call to runtime routine. | 770 // Do tail-call to runtime routine. |
| 770 __ TailCallRuntime( | 771 __ TailCallRuntime( |
| 771 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3); | 772 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3); |
| 772 } | 773 } |
| 773 | 774 |
| 774 #undef __ | 775 #undef __ |
| 775 | 776 |
| 776 | 777 |
| 777 } } // namespace v8::internal | 778 } } // namespace v8::internal |
| OLD | NEW |