Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 18595006: MIPS: Implement Polymorphic Store ICs. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/mips/ic-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3715 matching lines...) Expand 10 before | Expand all | Expand 10 after
3726 // -- a2 : name 3726 // -- a2 : name
3727 // -- ra : return address 3727 // -- ra : return address
3728 // -- a0 : receiver 3728 // -- a0 : receiver
3729 // -- sp[0] : receiver 3729 // -- sp[0] : receiver
3730 // ----------------------------------- 3730 // -----------------------------------
3731 receiver = a0; 3731 receiver = a0;
3732 } 3732 }
3733 3733
3734 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, t0, &miss); 3734 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, t0, &miss);
3735 __ bind(&miss); 3735 __ bind(&miss);
3736 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); 3736 StubCompiler::TailCallBuiltin(
3737 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3737 } 3738 }
3738 3739
3739 3740
3740 void StringLengthStub::Generate(MacroAssembler* masm) { 3741 void StringLengthStub::Generate(MacroAssembler* masm) {
3741 Label miss; 3742 Label miss;
3742 Register receiver; 3743 Register receiver;
3743 if (kind() == Code::KEYED_LOAD_IC) { 3744 if (kind() == Code::KEYED_LOAD_IC) {
3744 // ----------- S t a t e ------------- 3745 // ----------- S t a t e -------------
3745 // -- ra : return address 3746 // -- ra : return address
3746 // -- a0 : key 3747 // -- a0 : key
(...skipping 10 matching lines...) Expand all
3757 // -- a0 : receiver 3758 // -- a0 : receiver
3758 // -- sp[0] : receiver 3759 // -- sp[0] : receiver
3759 // ----------------------------------- 3760 // -----------------------------------
3760 receiver = a0; 3761 receiver = a0;
3761 } 3762 }
3762 3763
3763 StubCompiler::GenerateLoadStringLength(masm, receiver, a3, t0, &miss, 3764 StubCompiler::GenerateLoadStringLength(masm, receiver, a3, t0, &miss,
3764 support_wrapper_); 3765 support_wrapper_);
3765 3766
3766 __ bind(&miss); 3767 __ bind(&miss);
3767 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); 3768 StubCompiler::TailCallBuiltin(
3769 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3768 } 3770 }
3769 3771
3770 3772
3771 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { 3773 void StoreArrayLengthStub::Generate(MacroAssembler* masm) {
3772 // This accepts as a receiver anything JSArray::SetElementsLength accepts 3774 // This accepts as a receiver anything JSArray::SetElementsLength accepts
3773 // (currently anything except for external arrays which means anything with 3775 // (currently anything except for external arrays which means anything with
3774 // elements of FixedArray type). Value must be a number, but only smis are 3776 // elements of FixedArray type). Value must be a number, but only smis are
3775 // accepted as the most common case. 3777 // accepted as the most common case.
3776 Label miss; 3778 Label miss;
3777 3779
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
3827 3829
3828 // Prepare tail call to StoreIC_ArrayLength. 3830 // Prepare tail call to StoreIC_ArrayLength.
3829 __ Push(receiver, value); 3831 __ Push(receiver, value);
3830 3832
3831 ExternalReference ref = 3833 ExternalReference ref =
3832 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate()); 3834 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate());
3833 __ TailCallExternalReference(ref, 2, 1); 3835 __ TailCallExternalReference(ref, 2, 1);
3834 3836
3835 __ bind(&miss); 3837 __ bind(&miss);
3836 3838
3837 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); 3839 StubCompiler::TailCallBuiltin(
3840 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind()));
3838 } 3841 }
3839 3842
3840 3843
3841 Register InstanceofStub::left() { return a0; } 3844 Register InstanceofStub::left() { return a0; }
3842 3845
3843 3846
3844 Register InstanceofStub::right() { return a1; } 3847 Register InstanceofStub::right() { return a1; }
3845 3848
3846 3849
3847 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { 3850 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
(...skipping 3763 matching lines...) Expand 10 before | Expand all | Expand 10 after
7611 __ bind(&fast_elements_case); 7614 __ bind(&fast_elements_case);
7612 GenerateCase(masm, FAST_ELEMENTS); 7615 GenerateCase(masm, FAST_ELEMENTS);
7613 } 7616 }
7614 7617
7615 7618
7616 #undef __ 7619 #undef __
7617 7620
7618 } } // namespace v8::internal 7621 } } // namespace v8::internal
7619 7622
7620 #endif // V8_TARGET_ARCH_MIPS 7623 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698