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

Side by Side Diff: src/code-factory.cc

Issue 2245683002: [stubs] Port KeyedLoadIC_Generic stub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased past fixes Created 4 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
« no previous file with comments | « src/builtins/builtins-sharedarraybuffer.cc ('k') | src/code-stub-assembler.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 if (FLAG_tf_load_ic_stub) { 75 if (FLAG_tf_load_ic_stub) {
76 KeyedLoadICTFStub stub(isolate); 76 KeyedLoadICTFStub stub(isolate);
77 return make_callable(stub); 77 return make_callable(stub);
78 } 78 }
79 KeyedLoadICStub stub(isolate); 79 KeyedLoadICStub stub(isolate);
80 return make_callable(stub); 80 return make_callable(stub);
81 } 81 }
82 82
83 // static 83 // static
84 Callable CodeFactory::KeyedLoadIC_Megamorphic(Isolate* isolate) { 84 Callable CodeFactory::KeyedLoadIC_Megamorphic(Isolate* isolate) {
85 if (FLAG_tf_load_ic_stub) {
86 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic_TF(),
87 LoadWithVectorDescriptor(isolate));
88 }
85 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic(), 89 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic(),
86 LoadWithVectorDescriptor(isolate)); 90 LoadWithVectorDescriptor(isolate));
87 } 91 }
88 92
89 // static 93 // static
90 Callable CodeFactory::CallIC(Isolate* isolate, int argc, 94 Callable CodeFactory::CallIC(Isolate* isolate, int argc,
91 ConvertReceiverMode mode, 95 ConvertReceiverMode mode,
92 TailCallMode tail_call_mode) { 96 TailCallMode tail_call_mode) {
93 CallICTrampolineStub stub(isolate, CallICState(argc, mode, tail_call_mode)); 97 CallICTrampolineStub stub(isolate, CallICState(argc, mode, tail_call_mode));
94 return make_callable(stub); 98 return make_callable(stub);
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 } 612 }
609 613
610 // static 614 // static
611 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 615 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
612 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 616 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
613 ContextOnlyDescriptor(isolate)); 617 ContextOnlyDescriptor(isolate));
614 } 618 }
615 619
616 } // namespace internal 620 } // namespace internal
617 } // namespace v8 621 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-sharedarraybuffer.cc ('k') | src/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698