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

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

Issue 633423002: Teach TurboFan to call vector-based ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed nits. Created 6 years, 2 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/mips/lithium-codegen-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 // 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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 } 817 }
818 } 818 }
819 819
820 820
821 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, 821 Handle<Code> LoadIC::initialize_stub(Isolate* isolate,
822 ExtraICState extra_state) { 822 ExtraICState extra_state) {
823 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state); 823 return PropertyICCompiler::ComputeLoad(isolate, UNINITIALIZED, extra_state);
824 } 824 }
825 825
826 826
827 Handle<Code> LoadIC::initialize_stub_in_optimized_code(
828 Isolate* isolate, ExtraICState extra_state) {
829 if (FLAG_vector_ics) {
830 return VectorLoadStub(isolate, LoadICState(extra_state)).GetCode();
831 }
832 return initialize_stub(isolate, extra_state);
833 }
834
835
836 Handle<Code> KeyedLoadIC::initialize_stub(Isolate* isolate) {
837 if (FLAG_vector_ics) {
838 return KeyedLoadICTrampolineStub(isolate).GetCode();
839 }
840
841 return isolate->builtins()->KeyedLoadIC_Initialize();
842 }
843
844
845 Handle<Code> KeyedLoadIC::initialize_stub_in_optimized_code(Isolate* isolate) {
846 if (FLAG_vector_ics) {
847 return VectorKeyedLoadStub(isolate).GetCode();
848 }
849 return initialize_stub(isolate);
850 }
851
852
827 Handle<Code> LoadIC::megamorphic_stub() { 853 Handle<Code> LoadIC::megamorphic_stub() {
828 if (kind() == Code::LOAD_IC) { 854 if (kind() == Code::LOAD_IC) {
829 MegamorphicLoadStub stub(isolate(), LoadICState(extra_ic_state())); 855 MegamorphicLoadStub stub(isolate(), LoadICState(extra_ic_state()));
830 return stub.GetCode(); 856 return stub.GetCode();
831 } else { 857 } else {
832 DCHECK_EQ(Code::KEYED_LOAD_IC, kind()); 858 DCHECK_EQ(Code::KEYED_LOAD_IC, kind());
833 return KeyedLoadIC::generic_stub(isolate()); 859 return KeyedLoadIC::generic_stub(isolate());
834 } 860 }
835 } 861 }
836 862
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after
2664 static const Address IC_utilities[] = { 2690 static const Address IC_utilities[] = {
2665 #define ADDR(name) FUNCTION_ADDR(name), 2691 #define ADDR(name) FUNCTION_ADDR(name),
2666 IC_UTIL_LIST(ADDR) NULL 2692 IC_UTIL_LIST(ADDR) NULL
2667 #undef ADDR 2693 #undef ADDR
2668 }; 2694 };
2669 2695
2670 2696
2671 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; } 2697 Address IC::AddressFromUtilityId(IC::UtilityId id) { return IC_utilities[id]; }
2672 } 2698 }
2673 } // namespace v8::internal 2699 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698