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/builtins/builtins-descriptors.h" | 8 #include "src/builtins/builtins-descriptors.h" |
9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 CallForwardVarargsDescriptor(isolate)); | 323 CallForwardVarargsDescriptor(isolate)); |
324 } | 324 } |
325 | 325 |
326 // static | 326 // static |
327 Callable CodeFactory::Construct(Isolate* isolate) { | 327 Callable CodeFactory::Construct(Isolate* isolate) { |
328 return Callable(isolate->builtins()->Construct(), | 328 return Callable(isolate->builtins()->Construct(), |
329 ConstructTrampolineDescriptor(isolate)); | 329 ConstructTrampolineDescriptor(isolate)); |
330 } | 330 } |
331 | 331 |
332 // static | 332 // static |
333 Callable CodeFactory::ConstructWithArrayLike(Isolate* isolate) { | |
petermarshall
2017/06/21 08:46:19
You should be able to use Builtins::CallableFor(ma
Benedikt Meurer
2017/06/21 12:05:25
Done.
| |
334 return Callable(isolate->builtins()->ConstructWithArrayLike(), | |
335 ConstructWithArrayLikeDescriptor(isolate)); | |
336 } | |
337 | |
338 // static | |
333 Callable CodeFactory::ConstructWithSpread(Isolate* isolate) { | 339 Callable CodeFactory::ConstructWithSpread(Isolate* isolate) { |
334 return Callable(isolate->builtins()->ConstructWithSpread(), | 340 return Callable(isolate->builtins()->ConstructWithSpread(), |
335 ConstructWithSpreadDescriptor(isolate)); | 341 ConstructWithSpreadDescriptor(isolate)); |
336 } | 342 } |
337 | 343 |
338 // static | 344 // static |
339 Callable CodeFactory::ConstructFunction(Isolate* isolate) { | 345 Callable CodeFactory::ConstructFunction(Isolate* isolate) { |
340 return Callable(isolate->builtins()->ConstructFunction(), | 346 return Callable(isolate->builtins()->ConstructFunction(), |
341 ConstructTrampolineDescriptor(isolate)); | 347 ConstructTrampolineDescriptor(isolate)); |
342 } | 348 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
418 } | 424 } |
419 | 425 |
420 // static | 426 // static |
421 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 427 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
422 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 428 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
423 BuiltinDescriptor(isolate)); | 429 BuiltinDescriptor(isolate)); |
424 } | 430 } |
425 | 431 |
426 } // namespace internal | 432 } // namespace internal |
427 } // namespace v8 | 433 } // namespace v8 |
OLD | NEW |