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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // static | 147 // static |
148 Callable CodeFactory::StoreGlobalViaContext(Isolate* isolate, int depth, | 148 Callable CodeFactory::StoreGlobalViaContext(Isolate* isolate, int depth, |
149 LanguageMode language_mode) { | 149 LanguageMode language_mode) { |
150 StoreGlobalViaContextStub stub(isolate, depth, language_mode); | 150 StoreGlobalViaContextStub stub(isolate, depth, language_mode); |
151 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 151 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
152 } | 152 } |
153 | 153 |
154 | 154 |
155 // static | 155 // static |
156 Callable CodeFactory::Instanceof(Isolate* isolate, | 156 Callable CodeFactory::InstanceOf(Isolate* isolate) { |
157 InstanceofStub::Flags flags) { | 157 InstanceOfStub stub(isolate); |
158 InstanceofStub stub(isolate, flags); | |
159 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 158 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
160 } | 159 } |
161 | 160 |
162 | 161 |
163 // static | 162 // static |
164 Callable CodeFactory::ToBoolean(Isolate* isolate, | 163 Callable CodeFactory::ToBoolean(Isolate* isolate, |
165 ToBooleanStub::ResultMode mode, | 164 ToBooleanStub::ResultMode mode, |
166 ToBooleanStub::Types types) { | 165 ToBooleanStub::Types types) { |
167 ToBooleanStub stub(isolate, mode, types); | 166 ToBooleanStub stub(isolate, mode, types); |
168 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 167 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 230 |
232 // static | 231 // static |
233 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, | 232 Callable CodeFactory::CallFunction(Isolate* isolate, int argc, |
234 CallFunctionFlags flags) { | 233 CallFunctionFlags flags) { |
235 CallFunctionStub stub(isolate, argc, flags); | 234 CallFunctionStub stub(isolate, argc, flags); |
236 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 235 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
237 } | 236 } |
238 | 237 |
239 } // namespace internal | 238 } // namespace internal |
240 } // namespace v8 | 239 } // namespace v8 |
OLD | NEW |