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