| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 ConstructTrampolineDescriptor(isolate)); | 564 ConstructTrampolineDescriptor(isolate)); |
| 565 } | 565 } |
| 566 | 566 |
| 567 // static | 567 // static |
| 568 Callable CodeFactory::HasProperty(Isolate* isolate) { | 568 Callable CodeFactory::HasProperty(Isolate* isolate) { |
| 569 HasPropertyStub stub(isolate); | 569 HasPropertyStub stub(isolate); |
| 570 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); | 570 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 571 } | 571 } |
| 572 | 572 |
| 573 // static | 573 // static |
| 574 Callable CodeFactory::ForInFilter(Isolate* isolate) { |
| 575 ForInFilterStub stub(isolate); |
| 576 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 577 } |
| 578 |
| 579 // static |
| 574 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, | 580 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, |
| 575 TailCallMode tail_call_mode, | 581 TailCallMode tail_call_mode, |
| 576 CallableType function_type) { | 582 CallableType function_type) { |
| 577 return Callable(isolate->builtins()->InterpreterPushArgsAndCall( | 583 return Callable(isolate->builtins()->InterpreterPushArgsAndCall( |
| 578 tail_call_mode, function_type), | 584 tail_call_mode, function_type), |
| 579 InterpreterPushArgsAndCallDescriptor(isolate)); | 585 InterpreterPushArgsAndCallDescriptor(isolate)); |
| 580 } | 586 } |
| 581 | 587 |
| 582 | 588 |
| 583 // static | 589 // static |
| 584 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { | 590 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { |
| 585 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), | 591 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), |
| 586 InterpreterPushArgsAndConstructDescriptor(isolate)); | 592 InterpreterPushArgsAndConstructDescriptor(isolate)); |
| 587 } | 593 } |
| 588 | 594 |
| 589 | 595 |
| 590 // static | 596 // static |
| 591 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { | 597 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
| 592 // Note: If we ever use fpregs in the interpreter then we will need to | 598 // Note: If we ever use fpregs in the interpreter then we will need to |
| 593 // save fpregs too. | 599 // save fpregs too. |
| 594 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); | 600 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); |
| 595 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 601 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 596 } | 602 } |
| 597 | 603 |
| 598 } // namespace internal | 604 } // namespace internal |
| 599 } // namespace v8 | 605 } // namespace v8 |
| OLD | NEW |