| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 296 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 297 } | 297 } |
| 298 | 298 |
| 299 | 299 |
| 300 // static | 300 // static |
| 301 Callable CodeFactory::AllocateMutableHeapNumber(Isolate* isolate) { | 301 Callable CodeFactory::AllocateMutableHeapNumber(Isolate* isolate) { |
| 302 AllocateMutableHeapNumberStub stub(isolate); | 302 AllocateMutableHeapNumberStub stub(isolate); |
| 303 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 303 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 304 } | 304 } |
| 305 | 305 |
| 306 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type) \ |
| 307 Callable CodeFactory::Allocate##Type(Isolate* isolate) { \ |
| 308 Allocate##Type##Stub stub(isolate); \ |
| 309 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); \ |
| 310 } |
| 311 SIMD128_TYPES(SIMD128_ALLOC) |
| 312 #undef SIMD128_ALLOC |
| 306 | 313 |
| 307 // static | 314 // static |
| 308 Callable CodeFactory::AllocateInNewSpace(Isolate* isolate) { | 315 Callable CodeFactory::AllocateInNewSpace(Isolate* isolate) { |
| 309 AllocateInNewSpaceStub stub(isolate); | 316 AllocateInNewSpaceStub stub(isolate); |
| 310 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 317 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 311 } | 318 } |
| 312 | 319 |
| 313 | 320 |
| 314 // static | 321 // static |
| 315 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { | 322 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 // static | 372 // static |
| 366 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 373 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
| 367 // Note: If we ever use fpregs in the interpreter then we will need to | 374 // Note: If we ever use fpregs in the interpreter then we will need to |
| 368 // save fpregs too. | 375 // save fpregs too. |
| 369 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 376 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
| 370 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 377 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 371 } | 378 } |
| 372 | 379 |
| 373 } // namespace internal | 380 } // namespace internal |
| 374 } // namespace v8 | 381 } // namespace v8 |
| OLD | NEW |