OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 } | 548 } |
549 | 549 |
550 Node* CodeAssembler::TailCallStub(Callable const& callable, Node* context, | 550 Node* CodeAssembler::TailCallStub(Callable const& callable, Node* context, |
551 Node* arg1, Node* arg2, Node* arg3, | 551 Node* arg1, Node* arg2, Node* arg3, |
552 size_t result_size) { | 552 size_t result_size) { |
553 Node* target = HeapConstant(callable.code()); | 553 Node* target = HeapConstant(callable.code()); |
554 return TailCallStub(callable.descriptor(), target, context, arg1, arg2, arg3, | 554 return TailCallStub(callable.descriptor(), target, context, arg1, arg2, arg3, |
555 result_size); | 555 result_size); |
556 } | 556 } |
557 | 557 |
| 558 Node* CodeAssembler::TailCallStub(Callable const& callable, Node* context, |
| 559 Node* arg1, Node* arg2, Node* arg3, |
| 560 Node* arg4, size_t result_size) { |
| 561 Node* target = HeapConstant(callable.code()); |
| 562 return TailCallStub(callable.descriptor(), target, context, arg1, arg2, arg3, |
| 563 arg4, result_size); |
| 564 } |
| 565 |
558 Node* CodeAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor, | 566 Node* CodeAssembler::TailCallStub(const CallInterfaceDescriptor& descriptor, |
559 Node* target, Node* context, Node* arg1, | 567 Node* target, Node* context, Node* arg1, |
560 size_t result_size) { | 568 size_t result_size) { |
561 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( | 569 CallDescriptor* call_descriptor = Linkage::GetStubCallDescriptor( |
562 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), | 570 isolate(), zone(), descriptor, descriptor.GetStackParameterCount(), |
563 CallDescriptor::kSupportsTailCalls, Operator::kNoProperties, | 571 CallDescriptor::kSupportsTailCalls, Operator::kNoProperties, |
564 MachineType::AnyTagged(), result_size); | 572 MachineType::AnyTagged(), result_size); |
565 | 573 |
566 Node** args = zone()->NewArray<Node*>(2); | 574 Node** args = zone()->NewArray<Node*>(2); |
567 args[0] = arg1; | 575 args[0] = arg1; |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 } | 914 } |
907 } | 915 } |
908 } | 916 } |
909 | 917 |
910 bound_ = true; | 918 bound_ = true; |
911 } | 919 } |
912 | 920 |
913 } // namespace compiler | 921 } // namespace compiler |
914 } // namespace internal | 922 } // namespace internal |
915 } // namespace v8 | 923 } // namespace v8 |
OLD | NEW |