| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 447 |
| 448 // static | 448 // static |
| 449 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { | 449 Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) { |
| 450 FastCloneShallowObjectStub stub(isolate, length); | 450 FastCloneShallowObjectStub stub(isolate, length); |
| 451 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 451 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 452 } | 452 } |
| 453 | 453 |
| 454 | 454 |
| 455 // static | 455 // static |
| 456 Callable CodeFactory::FastNewContext(Isolate* isolate, int slot_count) { | 456 Callable CodeFactory::FastNewContext(Isolate* isolate, int slot_count) { |
| 457 FastNewContextStub stub(isolate, slot_count); | 457 FastNewFunctionContextStub stub(isolate, slot_count); |
| 458 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 458 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 459 } | 459 } |
| 460 | 460 |
| 461 | 461 |
| 462 // static | 462 // static |
| 463 Callable CodeFactory::FastNewClosure(Isolate* isolate) { | 463 Callable CodeFactory::FastNewClosure(Isolate* isolate) { |
| 464 FastNewClosureStub stub(isolate); | 464 FastNewClosureStub stub(isolate); |
| 465 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 465 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 466 } | 466 } |
| 467 | 467 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // static | 571 // static |
| 572 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 572 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
| 573 // Note: If we ever use fpregs in the interpreter then we will need to | 573 // Note: If we ever use fpregs in the interpreter then we will need to |
| 574 // save fpregs too. | 574 // save fpregs too. |
| 575 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 575 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
| 576 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 576 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 577 } | 577 } |
| 578 | 578 |
| 579 } // namespace internal | 579 } // namespace internal |
| 580 } // namespace v8 | 580 } // namespace v8 |
| OLD | NEW |