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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 return Callable(isolate->builtins()->ForInNext(), | 374 return Callable(isolate->builtins()->ForInNext(), |
375 ForInNextDescriptor(isolate)); | 375 ForInNextDescriptor(isolate)); |
376 } | 376 } |
377 | 377 |
378 // static | 378 // static |
379 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { | 379 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { |
380 AllocateHeapNumberStub stub(isolate); | 380 AllocateHeapNumberStub stub(isolate); |
381 return make_callable(stub); | 381 return make_callable(stub); |
382 } | 382 } |
383 | 383 |
384 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | |
385 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ | |
386 Allocate##Type##Stub stub(isolate); \ | |
387 return make_callable(stub); \ | |
388 } | |
389 SIMD128_TYPES(SIMD128_ALLOC) | |
390 #undef SIMD128_ALLOC | |
391 | |
392 // static | 384 // static |
393 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { | 385 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { |
394 return Callable(isolate->builtins()->ArgumentsAdaptorTrampoline(), | 386 return Callable(isolate->builtins()->ArgumentsAdaptorTrampoline(), |
395 ArgumentAdaptorDescriptor(isolate)); | 387 ArgumentAdaptorDescriptor(isolate)); |
396 } | 388 } |
397 | 389 |
398 // static | 390 // static |
399 Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode, | 391 Callable CodeFactory::Call(Isolate* isolate, ConvertReceiverMode mode, |
400 TailCallMode tail_call_mode) { | 392 TailCallMode tail_call_mode) { |
401 return Callable(isolate->builtins()->Call(mode, tail_call_mode), | 393 return Callable(isolate->builtins()->Call(mode, tail_call_mode), |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 } | 485 } |
494 | 486 |
495 // static | 487 // static |
496 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { | 488 Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) { |
497 return Callable(isolate->builtins()->FunctionPrototypeBind(), | 489 return Callable(isolate->builtins()->FunctionPrototypeBind(), |
498 BuiltinDescriptor(isolate)); | 490 BuiltinDescriptor(isolate)); |
499 } | 491 } |
500 | 492 |
501 } // namespace internal | 493 } // namespace internal |
502 } // namespace v8 | 494 } // namespace v8 |
OLD | NEW |