OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |