| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 | 778 |
| 779 __ movq(rax, Operand(rsp, kPointerSize)); | 779 __ movq(rax, Operand(rsp, kPointerSize)); |
| 780 | 780 |
| 781 StubCompiler::GenerateLoadArrayLength(masm, rax, rdx, &miss); | 781 StubCompiler::GenerateLoadArrayLength(masm, rax, rdx, &miss); |
| 782 __ bind(&miss); | 782 __ bind(&miss); |
| 783 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | 783 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); |
| 784 } | 784 } |
| 785 | 785 |
| 786 | 786 |
| 787 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { | 787 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { |
| 788 Generate(masm, ExternalReference(IC_Utility(kLoadIC_Miss))); | 788 // ----------- S t a t e ------------- |
| 789 // -- rcx : name |
| 790 // -- rsp[0] : return address |
| 791 // -- rsp[8] : receiver |
| 792 // ----------------------------------- |
| 793 |
| 794 Label miss; |
| 795 |
| 796 __ movq(rax, Operand(rsp, kPointerSize)); |
| 797 |
| 798 StubCompiler::GenerateLoadFunctionPrototype(masm, rax, rdx, rbx, &miss); |
| 799 __ bind(&miss); |
| 800 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); |
| 789 } | 801 } |
| 790 | 802 |
| 791 | 803 |
| 792 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 804 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 793 // ----------- S t a t e ------------- | 805 // ----------- S t a t e ------------- |
| 794 // -- rcx : name | 806 // -- rcx : name |
| 795 // -- rsp[0] : return address | 807 // -- rsp[0] : return address |
| 796 // -- rsp[8] : receiver | 808 // -- rsp[8] : receiver |
| 797 // ----------------------------------- | 809 // ----------------------------------- |
| 798 | 810 |
| 799 __ movq(rax, Operand(rsp, kPointerSize)); | 811 __ movq(rax, Operand(rsp, kPointerSize)); |
| 800 | 812 |
| 801 // Probe the stub cache. | 813 // Probe the stub cache. |
| 802 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, | 814 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, |
| 803 NOT_IN_LOOP, | 815 NOT_IN_LOOP, |
| 804 MONOMORPHIC); | 816 MONOMORPHIC); |
| 805 StubCache::GenerateProbe(masm, flags, rax, rcx, rbx, rdx); | 817 StubCache::GenerateProbe(masm, flags, rax, rcx, rbx, rdx); |
| 806 | 818 |
| 807 // Cache miss: Jump to runtime. | 819 // Cache miss: Jump to runtime. |
| 808 Generate(masm, ExternalReference(IC_Utility(kLoadIC_Miss))); | 820 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); |
| 809 } | 821 } |
| 810 | 822 |
| 811 | 823 |
| 812 void LoadIC::GenerateMiss(MacroAssembler* masm) { | 824 void LoadIC::GenerateMiss(MacroAssembler* masm) { |
| 813 // ----------- S t a t e ------------- | 825 // ----------- S t a t e ------------- |
| 814 // -- rcx : name | 826 // -- rcx : name |
| 815 // -- rsp[0] : return address | 827 // -- rsp[0] : return address |
| 816 // -- rsp[8] : receiver | 828 // -- rsp[8] : receiver |
| 817 // ----------------------------------- | 829 // ----------------------------------- |
| 818 | 830 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 | 919 |
| 908 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { | 920 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 909 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); | 921 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); |
| 910 } | 922 } |
| 911 | 923 |
| 912 | 924 |
| 913 #undef __ | 925 #undef __ |
| 914 | 926 |
| 915 | 927 |
| 916 } } // namespace v8::internal | 928 } } // namespace v8::internal |
| OLD | NEW |