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 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 | 13 |
14 // static | 14 // static |
15 Callable CodeFactory::LoadIC(Isolate* isolate, TypeofMode typeof_mode) { | 15 Callable CodeFactory::LoadIC(Isolate* isolate, TypeofMode typeof_mode) { |
| 16 if (FLAG_tf_load_ic_stub) { |
| 17 LoadICTrampolineTFStub stub(isolate, LoadICState(typeof_mode)); |
| 18 return Callable(stub.GetCode(), LoadDescriptor(isolate)); |
| 19 } |
16 LoadICTrampolineStub stub(isolate, LoadICState(typeof_mode)); | 20 LoadICTrampolineStub stub(isolate, LoadICState(typeof_mode)); |
17 return Callable(stub.GetCode(), LoadDescriptor(isolate)); | 21 return Callable(stub.GetCode(), LoadDescriptor(isolate)); |
18 } | 22 } |
19 | 23 |
20 // static | 24 // static |
21 Callable CodeFactory::ApiGetter(Isolate* isolate) { | 25 Callable CodeFactory::ApiGetter(Isolate* isolate) { |
22 CallApiGetterStub stub(isolate); | 26 CallApiGetterStub stub(isolate); |
23 return Callable(stub.GetCode(), ApiGetterDescriptor(isolate)); | 27 return Callable(stub.GetCode(), ApiGetterDescriptor(isolate)); |
24 } | 28 } |
25 | 29 |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 // static | 562 // static |
559 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 563 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
560 // Note: If we ever use fpregs in the interpreter then we will need to | 564 // Note: If we ever use fpregs in the interpreter then we will need to |
561 // save fpregs too. | 565 // save fpregs too. |
562 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 566 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
563 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 567 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
564 } | 568 } |
565 | 569 |
566 } // namespace internal | 570 } // namespace internal |
567 } // namespace v8 | 571 } // namespace v8 |
OLD | NEW |