| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 ConstructTrampolineDescriptor(isolate)); | 531 ConstructTrampolineDescriptor(isolate)); |
| 532 } | 532 } |
| 533 | 533 |
| 534 | 534 |
| 535 // static | 535 // static |
| 536 Callable CodeFactory::ConstructFunction(Isolate* isolate) { | 536 Callable CodeFactory::ConstructFunction(Isolate* isolate) { |
| 537 return Callable(isolate->builtins()->ConstructFunction(), | 537 return Callable(isolate->builtins()->ConstructFunction(), |
| 538 ConstructTrampolineDescriptor(isolate)); | 538 ConstructTrampolineDescriptor(isolate)); |
| 539 } | 539 } |
| 540 | 540 |
| 541 // static |
| 542 Callable CodeFactory::HasProperty(Isolate* isolate) { |
| 543 HasPropertyStub stub(isolate); |
| 544 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); |
| 545 } |
| 541 | 546 |
| 542 // static | 547 // static |
| 543 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, | 548 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, |
| 544 TailCallMode tail_call_mode) { | 549 TailCallMode tail_call_mode) { |
| 545 return Callable( | 550 return Callable( |
| 546 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), | 551 isolate->builtins()->InterpreterPushArgsAndCall(tail_call_mode), |
| 547 InterpreterPushArgsAndCallDescriptor(isolate)); | 552 InterpreterPushArgsAndCallDescriptor(isolate)); |
| 548 } | 553 } |
| 549 | 554 |
| 550 | 555 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 563 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); | 568 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); |
| 564 } | 569 } |
| 565 | 570 |
| 566 Callable CodeFactory::AtomicsLoad(Isolate* isolate) { | 571 Callable CodeFactory::AtomicsLoad(Isolate* isolate) { |
| 567 AtomicsLoadStub stub(isolate); | 572 AtomicsLoadStub stub(isolate); |
| 568 return Callable(stub.GetCode(), AtomicsLoadDescriptor(isolate)); | 573 return Callable(stub.GetCode(), AtomicsLoadDescriptor(isolate)); |
| 569 } | 574 } |
| 570 | 575 |
| 571 } // namespace internal | 576 } // namespace internal |
| 572 } // namespace v8 | 577 } // namespace v8 |
| OLD | NEW |