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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 | 221 |
222 // static | 222 // static |
223 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { | 223 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { |
224 FastCloneShallowObjectStub stub(isolate, length); | 224 FastCloneShallowObjectStub stub(isolate, length); |
225 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 225 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
226 } | 226 } |
227 | 227 |
228 | 228 |
229 // static | 229 // static |
| 230 Callable CodeFactory::FastNewContext(Isolate* isolate, int slot_count) { |
| 231 FastNewContextStub stub(isolate, slot_count); |
| 232 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 233 } |
| 234 |
| 235 |
| 236 // static |
230 Callable CodeFactory::FastNewClosure(Isolate* isolate, | 237 Callable CodeFactory::FastNewClosure(Isolate* isolate, |
231 LanguageMode language_mode, | 238 LanguageMode language_mode, |
232 FunctionKind kind) { | 239 FunctionKind kind) { |
233 FastNewClosureStub stub(isolate, language_mode, kind); | 240 FastNewClosureStub stub(isolate, language_mode, kind); |
234 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 241 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
235 } | 242 } |
236 | 243 |
237 | 244 |
238 // static | 245 // static |
239 Callable CodeFactory::ArgumentsAccess(Isolate* isolate, | 246 Callable CodeFactory::ArgumentsAccess(Isolate* isolate, |
(...skipping 22 matching lines...) Expand all Loading... |
262 | 269 |
263 | 270 |
264 // static | 271 // static |
265 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) { | 272 Callable CodeFactory::PushArgsAndCall(Isolate* isolate) { |
266 return Callable(isolate->builtins()->PushArgsAndCall(), | 273 return Callable(isolate->builtins()->PushArgsAndCall(), |
267 PushArgsAndCallDescriptor(isolate)); | 274 PushArgsAndCallDescriptor(isolate)); |
268 } | 275 } |
269 | 276 |
270 } // namespace internal | 277 } // namespace internal |
271 } // namespace v8 | 278 } // namespace v8 |
OLD | NEW |