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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 } | 614 } |
611 | 615 |
612 // static | 616 // static |
613 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 617 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
614 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 618 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
615 ContextOnlyDescriptor(isolate)); | 619 ContextOnlyDescriptor(isolate)); |
616 } | 620 } |
617 | 621 |
618 } // namespace internal | 622 } // namespace internal |
619 } // namespace v8 | 623 } // namespace v8 |
OLD | NEW |