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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // static | 68 // static |
69 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc, | 69 Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc, |
70 ConvertReceiverMode mode) { | 70 ConvertReceiverMode mode) { |
71 return Callable( | 71 return Callable( |
72 CallIC::initialize_stub_in_optimized_code(isolate, argc, mode), | 72 CallIC::initialize_stub_in_optimized_code(isolate, argc, mode), |
73 CallFunctionWithFeedbackAndVectorDescriptor(isolate)); | 73 CallFunctionWithFeedbackAndVectorDescriptor(isolate)); |
74 } | 74 } |
75 | 75 |
76 | 76 |
77 // static | 77 // static |
| 78 Callable CodeFactory::ConstructIC(Isolate* isolate) { |
| 79 ConstructICStub stub(isolate); |
| 80 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 81 } |
| 82 |
| 83 |
| 84 // static |
78 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { | 85 Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { |
79 return Callable( | 86 return Callable( |
80 StoreIC::initialize_stub(isolate, language_mode, UNINITIALIZED), | 87 StoreIC::initialize_stub(isolate, language_mode, UNINITIALIZED), |
81 VectorStoreICTrampolineDescriptor(isolate)); | 88 VectorStoreICTrampolineDescriptor(isolate)); |
82 } | 89 } |
83 | 90 |
84 | 91 |
85 // static | 92 // static |
86 Callable CodeFactory::StoreICInOptimizedCode( | 93 Callable CodeFactory::StoreICInOptimizedCode( |
87 Isolate* isolate, LanguageMode language_mode, | 94 Isolate* isolate, LanguageMode language_mode, |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { | 343 Callable CodeFactory::InterpreterCEntry(Isolate* isolate) { |
337 // TODO(rmcilroy): Deal with runtime functions that return two values. | 344 // TODO(rmcilroy): Deal with runtime functions that return two values. |
338 // Note: If we ever use fpregs in the interpreter then we will need to | 345 // Note: If we ever use fpregs in the interpreter then we will need to |
339 // save fpregs too. | 346 // save fpregs too. |
340 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); | 347 CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister); |
341 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 348 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
342 } | 349 } |
343 | 350 |
344 } // namespace internal | 351 } // namespace internal |
345 } // namespace v8 | 352 } // namespace v8 |
OLD | NEW |