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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 FastNewContextStub 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 LanguageMode language_mode, | 464 FastNewClosureStub stub(isolate); |
465 FunctionKind kind) { | |
466 FastNewClosureStub stub(isolate, language_mode, kind); | |
467 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 465 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
468 } | 466 } |
469 | 467 |
470 | 468 |
471 // static | 469 // static |
472 Callable CodeFactory::FastNewObject(Isolate* isolate) { | 470 Callable CodeFactory::FastNewObject(Isolate* isolate) { |
473 FastNewObjectStub stub(isolate); | 471 FastNewObjectStub stub(isolate); |
474 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 472 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
475 } | 473 } |
476 | 474 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 // static | 577 // static |
580 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 578 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
581 // Note: If we ever use fpregs in the interpreter then we will need to | 579 // Note: If we ever use fpregs in the interpreter then we will need to |
582 // save fpregs too. | 580 // save fpregs too. |
583 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 581 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
584 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 582 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
585 } | 583 } |
586 | 584 |
587 } // namespace internal | 585 } // namespace internal |
588 } // namespace v8 | 586 } // namespace v8 |
OLD | NEW |