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

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: Cleanup and ports. 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
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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 806
807 807
808 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, 808 Handle<Code> LoadIC::initialize_stub(Isolate* isolate,
809 ExtraICState extra_state) { 809 ExtraICState extra_state) {
810 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state); 810 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state);
811 } 811 }
812 812
813 813
814 Handle<Code> LoadIC::megamorphic_stub() { 814 Handle<Code> LoadIC::megamorphic_stub() {
815 if (kind() == Code::LOAD_IC) { 815 if (kind() == Code::LOAD_IC) {
816 return PropertyICCompiler::ComputeLoad(isolate(), MEGAMORPHIC, 816 MegamorphicLoadStub stub(isolate(), State(extra_ic_state()));
817 extra_ic_state()); 817 return stub.GetCode();
818 } else { 818 } else {
819 DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); 819 DCHECK_EQ(Code::KEYED_LOAD_IC, kind());
820 return KeyedLoadIC::generic_stub(isolate()); 820 return KeyedLoadIC::generic_stub(isolate());
821 } 821 }
822 } 822 }
823 823
824 824
825 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate, 825 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate,
826 ExtraICState extra_state) { 826 ExtraICState extra_state) {
827 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state); 827 return PropertyICCompiler::ComputeLoad(isolate, PREMONOMORPHIC, extra_state);
(...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after
3198 static const Address IC_utilities[] = { 3198 static const Address IC_utilities[] = {
3199 #define ADDR(name) FUNCTION_ADDR(name), 3199 #define ADDR(name) FUNCTION_ADDR(name),
3200 IC_UTIL_LIST(ADDR) NULL 3200 IC_UTIL_LIST(ADDR) NULL
3201 #undef ADDR 3201 #undef ADDR
3202 }; 3202 };
3203 3203
3204 3204
3205 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 3205 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
3206 } 3206 }
3207 } // namespace v8::internal 3207 } // namespace v8::internal
OLDNEW
« src/code-stubs.h ('K') | « 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