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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 12390031: Unify grow mode and stub kind (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/ic.cc ('k') | src/objects.h » ('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 3770 matching lines...) Expand 10 before | Expand all | Expand 10 after
3781 Handle<Code> miss_ic = 3781 Handle<Code> miss_ic =
3782 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); 3782 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric();
3783 __ Jump(miss_ic, RelocInfo::CODE_TARGET); 3783 __ Jump(miss_ic, RelocInfo::CODE_TARGET);
3784 } 3784 }
3785 3785
3786 3786
3787 void KeyedStoreStubCompiler::GenerateStoreFastElement( 3787 void KeyedStoreStubCompiler::GenerateStoreFastElement(
3788 MacroAssembler* masm, 3788 MacroAssembler* masm,
3789 bool is_js_array, 3789 bool is_js_array,
3790 ElementsKind elements_kind, 3790 ElementsKind elements_kind,
3791 KeyedAccessGrowMode grow_mode) { 3791 KeyedAccessStoreMode store_mode) {
3792 // ----------- S t a t e ------------- 3792 // ----------- S t a t e -------------
3793 // -- a0 : value 3793 // -- a0 : value
3794 // -- a1 : key 3794 // -- a1 : key
3795 // -- a2 : receiver 3795 // -- a2 : receiver
3796 // -- ra : return address 3796 // -- ra : return address
3797 // -- a3 : scratch 3797 // -- a3 : scratch
3798 // -- a4 : scratch (elements) 3798 // -- a4 : scratch (elements)
3799 // ----------------------------------- 3799 // -----------------------------------
3800 Label miss_force_generic, transition_elements_kind, grow, slow; 3800 Label miss_force_generic, transition_elements_kind, grow, slow;
3801 Label finish_store, check_capacity; 3801 Label finish_store, check_capacity;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
3943 __ bind(&slow); 3943 __ bind(&slow);
3944 Handle<Code> ic_slow = masm->isolate()->builtins()->KeyedStoreIC_Slow(); 3944 Handle<Code> ic_slow = masm->isolate()->builtins()->KeyedStoreIC_Slow();
3945 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 3945 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
3946 } 3946 }
3947 } 3947 }
3948 3948
3949 3949
3950 void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement( 3950 void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
3951 MacroAssembler* masm, 3951 MacroAssembler* masm,
3952 bool is_js_array, 3952 bool is_js_array,
3953 KeyedAccessGrowMode grow_mode) { 3953 KeyedAccessStoreMode store_mode) {
3954 // ----------- S t a t e ------------- 3954 // ----------- S t a t e -------------
3955 // -- a0 : value 3955 // -- a0 : value
3956 // -- a1 : key 3956 // -- a1 : key
3957 // -- a2 : receiver 3957 // -- a2 : receiver
3958 // -- ra : return address 3958 // -- ra : return address
3959 // -- a3 : scratch (elements backing store) 3959 // -- a3 : scratch (elements backing store)
3960 // -- t0 : scratch (elements_reg) 3960 // -- t0 : scratch (elements_reg)
3961 // -- t1 : scratch (mantissa_reg) 3961 // -- t1 : scratch (mantissa_reg)
3962 // -- t2 : scratch (exponent_reg) 3962 // -- t2 : scratch (exponent_reg)
3963 // -- t3 : scratch4 3963 // -- t3 : scratch4
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
4111 __ Jump(ic_slow, RelocInfo::CODE_TARGET); 4111 __ Jump(ic_slow, RelocInfo::CODE_TARGET);
4112 } 4112 }
4113 } 4113 }
4114 4114
4115 4115
4116 #undef __ 4116 #undef __
4117 4117
4118 } } // namespace v8::internal 4118 } } // namespace v8::internal
4119 4119
4120 #endif // V8_TARGET_ARCH_MIPS 4120 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698