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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 492 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
493 } | 493 } |
494 | 494 |
495 | 495 |
496 // static | 496 // static |
497 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { | 497 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { |
498 AllocateHeapNumberStub stub(isolate); | 498 AllocateHeapNumberStub stub(isolate); |
499 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 499 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
500 } | 500 } |
501 | 501 |
502 | |
503 // static | |
504 Callable CodeFactory::AllocateMutableHeapNumber(Isolate* isolate) { | |
505 AllocateMutableHeapNumberStub stub(isolate); | |
506 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | |
507 } | |
508 | |
509 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ | 502 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
510 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ | 503 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ |
511 Allocate##Type##Stub stub(isolate); \ | 504 Allocate##Type##Stub stub(isolate); \ |
512 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); \ | 505 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); \ |
513 } | 506 } |
514 SIMD128_TYPES(SIMD128_ALLOC) | 507 SIMD128_TYPES(SIMD128_ALLOC) |
515 #undef SIMD128_ALLOC | 508 #undef SIMD128_ALLOC |
516 | 509 |
517 // static | 510 // static |
518 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { | 511 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 // static | 567 // static |
575 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 568 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
576 // Note: If we ever use fpregs in the interpreter then we will need to | 569 // Note: If we ever use fpregs in the interpreter then we will need to |
577 // save fpregs too. | 570 // save fpregs too. |
578 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 571 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
579 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 572 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
580 } | 573 } |
581 | 574 |
582 } // namespace internal | 575 } // namespace internal |
583 } // namespace v8 | 576 } // namespace v8 |
OLD | NEW |