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/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 Operator::ZeroIfNoThrow(descriptor->properties()), descriptor) {} | 733 Operator::ZeroIfNoThrow(descriptor->properties()), descriptor) {} |
734 | 734 |
735 void PrintParameter(std::ostream& os) const override { | 735 void PrintParameter(std::ostream& os) const override { |
736 os << "[" << *parameter() << "]"; | 736 os << "[" << *parameter() << "]"; |
737 } | 737 } |
738 }; | 738 }; |
739 return new (zone()) CallOperator(descriptor); | 739 return new (zone()) CallOperator(descriptor); |
740 } | 740 } |
741 | 741 |
742 | 742 |
| 743 const Operator* CommonOperatorBuilder::LazyBailout() { |
| 744 return Call(Linkage::GetLazyBailoutDescriptor(zone())); |
| 745 } |
| 746 |
| 747 |
743 const Operator* CommonOperatorBuilder::TailCall( | 748 const Operator* CommonOperatorBuilder::TailCall( |
744 const CallDescriptor* descriptor) { | 749 const CallDescriptor* descriptor) { |
745 class TailCallOperator final : public Operator1<const CallDescriptor*> { | 750 class TailCallOperator final : public Operator1<const CallDescriptor*> { |
746 public: | 751 public: |
747 explicit TailCallOperator(const CallDescriptor* descriptor) | 752 explicit TailCallOperator(const CallDescriptor* descriptor) |
748 : Operator1<const CallDescriptor*>( | 753 : Operator1<const CallDescriptor*>( |
749 IrOpcode::kTailCall, descriptor->properties(), "TailCall", | 754 IrOpcode::kTailCall, descriptor->properties(), "TailCall", |
750 descriptor->InputCount() + descriptor->FrameStateCount(), 1, 1, 0, | 755 descriptor->InputCount() + descriptor->FrameStateCount(), 1, 1, 0, |
751 0, 1, descriptor) {} | 756 0, 1, descriptor) {} |
752 | 757 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 Handle<SharedFunctionInfo> shared_info, | 806 Handle<SharedFunctionInfo> shared_info, |
802 ContextCallingMode context_calling_mode) { | 807 ContextCallingMode context_calling_mode) { |
803 return new (zone()->New(sizeof(FrameStateFunctionInfo))) | 808 return new (zone()->New(sizeof(FrameStateFunctionInfo))) |
804 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, | 809 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, |
805 context_calling_mode); | 810 context_calling_mode); |
806 } | 811 } |
807 | 812 |
808 } // namespace compiler | 813 } // namespace compiler |
809 } // namespace internal | 814 } // namespace internal |
810 } // namespace v8 | 815 } // namespace v8 |
OLD | NEW |