| 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 } | |
| 89 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic(), | 85 return Callable(isolate->builtins()->KeyedLoadIC_Megamorphic(), |
| 90 LoadWithVectorDescriptor(isolate)); | 86 LoadWithVectorDescriptor(isolate)); |
| 91 } | 87 } |
| 92 | 88 |
| 93 // static | 89 // static |
| 94 Callable CodeFactory::CallIC(Isolate* isolate, int argc, | 90 Callable CodeFactory::CallIC(Isolate* isolate, int argc, |
| 95 ConvertReceiverMode mode, | 91 ConvertReceiverMode mode, |
| 96 TailCallMode tail_call_mode) { | 92 TailCallMode tail_call_mode) { |
| 97 CallICTrampolineStub stub(isolate, CallICState(argc, mode, tail_call_mode)); | 93 CallICTrampolineStub stub(isolate, CallICState(argc, mode, tail_call_mode)); |
| 98 return make_callable(stub); | 94 return make_callable(stub); |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 } | 608 } |
| 613 | 609 |
| 614 // static | 610 // static |
| 615 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { | 611 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { |
| 616 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), | 612 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), |
| 617 ContextOnlyDescriptor(isolate)); | 613 ContextOnlyDescriptor(isolate)); |
| 618 } | 614 } |
| 619 | 615 |
| 620 } // namespace internal | 616 } // namespace internal |
| 621 } // namespace v8 | 617 } // namespace v8 |
| OLD | NEW |