| 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 413   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 413   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 
| 414 } | 414 } | 
| 415 | 415 | 
| 416 | 416 | 
| 417 // static | 417 // static | 
| 418 Callable CodeFactory::AllocateMutableHeapNumber(Isolate* isolate) { | 418 Callable CodeFactory::AllocateMutableHeapNumber(Isolate* isolate) { | 
| 419   AllocateMutableHeapNumberStub stub(isolate); | 419   AllocateMutableHeapNumberStub stub(isolate); | 
| 420   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 420   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 
| 421 } | 421 } | 
| 422 | 422 | 
|  | 423 #define SIMD128_ALLOC(TYPE, Type, type, lane_count, lane_type)          \ | 
|  | 424   Callable CodeFactory::Allocate##Type(Isolate* isolate) {              \ | 
|  | 425     Allocate##Type##Stub stub(isolate);                                 \ | 
|  | 426     return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); \ | 
|  | 427   } | 
|  | 428 SIMD128_TYPES(SIMD128_ALLOC) | 
|  | 429 #undef SIMD128_ALLOC | 
| 423 | 430 | 
| 424 // static | 431 // static | 
| 425 Callable CodeFactory::AllocateInNewSpace(Isolate* isolate) { | 432 Callable CodeFactory::AllocateInNewSpace(Isolate* isolate) { | 
| 426   AllocateInNewSpaceStub stub(isolate); | 433   AllocateInNewSpaceStub stub(isolate); | 
| 427   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 434   return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 
| 428 } | 435 } | 
| 429 | 436 | 
| 430 | 437 | 
| 431 // static | 438 // static | 
| 432 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { | 439 Callable CodeFactory::ArgumentAdaptor(Isolate* isolate) { | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 483 // static | 490 // static | 
| 484 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 491 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 
| 485   // Note: If we ever use fpregs in the interpreter then we will need to | 492   // Note: If we ever use fpregs in the interpreter then we will need to | 
| 486   // save fpregs too. | 493   // save fpregs too. | 
| 487   CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 494   CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 
| 488   return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 495   return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 
| 489 } | 496 } | 
| 490 | 497 | 
| 491 }  // namespace internal | 498 }  // namespace internal | 
| 492 }  // namespace v8 | 499 }  // namespace v8 | 
| OLD | NEW | 
|---|