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

Side by Side Diff: src/ic/ic.cc

Issue 535873002: Encapsulate megamorphic load/tail-call in hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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/ic.h ('k') | src/ic/ic-compiler.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 808
809 809
810 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, 810 Handle<Code> LoadIC::initialize_stub(Isolate* isolate,
811 ExtraICState extra_state) { 811 ExtraICState extra_state) {
812 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state); 812 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state);
813 } 813 }
814 814
815 815
816 Handle<Code> LoadIC::megamorphic_stub() { 816 Handle<Code> LoadIC::megamorphic_stub() {
817 if (kind() == Code::LOAD_IC) { 817 if (kind() == Code::LOAD_IC) {
818 return PropertyICCompiler::ComputeLoad(isolate(), MEGAMORPHIC, 818 MegamorphicLoadStub stub(isolate(), State(extra_ic_state()));
819 extra_ic_state()); 819 return stub.GetCode();
820 } else { 820 } else {
821 DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); 821 DCHECK_EQ(Code::KEYED_LOAD_IC, kind());
822 return KeyedLoadIC::generic_stub(isolate()); 822 return KeyedLoadIC::generic_stub(isolate());
823 } 823 }
824 } 824 }
825 825
826 826
827 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate, 827 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate,
828 ExtraICState extra_state) { 828 ExtraICState extra_state) {
829 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state); 829 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state);
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after
3205 static const Address IC_utilities[] = { 3205 static const Address IC_utilities[] = {
3206 #define ADDR(name) FUNCTION_ADDR(name), 3206 #define ADDR(name) FUNCTION_ADDR(name),
3207 IC_UTIL_LIST(ADDR) NULL 3207 IC_UTIL_LIST(ADDR) NULL
3208 #undef ADDR 3208 #undef ADDR
3209 }; 3209 };
3210 3210
3211 3211
3212 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 3212 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
3213 } 3213 }
3214 } // namespace v8::internal 3214 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.h ('k') | src/ic/ic-compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698