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

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

Issue 2424433002: [ic] Delete old KeyedLoadIC code (Closed)
Patch Set: fix failing test Created 4 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
« no previous file with comments | « src/builtins/builtins-handler.cc ('k') | src/code-stubs.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // static 48 // static
49 Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate, 49 Callable CodeFactory::LoadGlobalICInOptimizedCode(Isolate* isolate,
50 TypeofMode typeof_mode) { 50 TypeofMode typeof_mode) {
51 LoadGlobalICStub stub(isolate, LoadGlobalICState(typeof_mode)); 51 LoadGlobalICStub stub(isolate, LoadGlobalICState(typeof_mode));
52 return make_callable(stub); 52 return make_callable(stub);
53 } 53 }
54 54
55 // static 55 // static
56 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) { 56 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) {
57 if (FLAG_tf_load_ic_stub) { 57 KeyedLoadICTrampolineTFStub stub(isolate);
58 KeyedLoadICTrampolineTFStub stub(isolate);
59 return make_callable(stub);
60 }
61 KeyedLoadICTrampolineStub stub(isolate);
62 return make_callable(stub); 58 return make_callable(stub);
63 } 59 }
64 60
65 // static 61 // static
66 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) { 62 Callable CodeFactory::KeyedLoadICInOptimizedCode(Isolate* isolate) {
67 if (FLAG_tf_load_ic_stub) { 63 KeyedLoadICTFStub stub(isolate);
68 KeyedLoadICTFStub stub(isolate);
69 return make_callable(stub);
70 }
71 KeyedLoadICStub stub(isolate);
72 return make_callable(stub); 64 return make_callable(stub);
73 } 65 }
74 66
75 // static 67 // static
76 Callable CodeFactory::KeyedLoadIC_Megamorphic(Isolate* isolate) { 68 Callable CodeFactory::KeyedLoadIC_Megamorphic(Isolate* isolate) {
77 if (FLAG_tf_load_ic_stub) { 69 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic_TF(),
78 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic_TF(),
79 LoadWithVectorDescriptor(isolate));
80 }
81 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic(),
82 LoadWithVectorDescriptor(isolate)); 70 LoadWithVectorDescriptor(isolate));
83 } 71 }
84 72
85 // static 73 // static
86 Callable CodeFactory::CallIC(Isolate* isolate, ConvertReceiverMode mode, 74 Callable CodeFactory::CallIC(Isolate* isolate, ConvertReceiverMode mode,
87 TailCallMode tail_call_mode) { 75 TailCallMode tail_call_mode) {
88 CallICTrampolineStub stub(isolate, CallICState(mode, tail_call_mode)); 76 CallICTrampolineStub stub(isolate, CallICState(mode, tail_call_mode));
89 return make_callable(stub); 77 return make_callable(stub);
90 } 78 }
91 79
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 } 477 }
490 478
491 // static 479 // static
492 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 480 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
493 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 481 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
494 ContextOnlyDescriptor(isolate)); 482 ContextOnlyDescriptor(isolate));
495 } 483 }
496 484
497 } // namespace internal 485 } // namespace internal
498 } // namespace v8 486 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-handler.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698