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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 Operator::ZeroIfNoThrow(descriptor->properties()), descriptor) {} | 796 Operator::ZeroIfNoThrow(descriptor->properties()), descriptor) {} |
797 | 797 |
798 void PrintParameter(std::ostream& os) const override { | 798 void PrintParameter(std::ostream& os) const override { |
799 os << "[" << *parameter() << "]"; | 799 os << "[" << *parameter() << "]"; |
800 } | 800 } |
801 }; | 801 }; |
802 return new (zone()) CallOperator(descriptor); | 802 return new (zone()) CallOperator(descriptor); |
803 } | 803 } |
804 | 804 |
805 | 805 |
806 const Operator* CommonOperatorBuilder::LazyBailout() { | |
807 return Call(Linkage::GetLazyBailoutDescriptor(zone())); | |
808 } | |
809 | |
810 | |
811 const Operator* CommonOperatorBuilder::TailCall( | 806 const Operator* CommonOperatorBuilder::TailCall( |
812 const CallDescriptor* descriptor) { | 807 const CallDescriptor* descriptor) { |
813 class TailCallOperator final : public Operator1<const CallDescriptor*> { | 808 class TailCallOperator final : public Operator1<const CallDescriptor*> { |
814 public: | 809 public: |
815 explicit TailCallOperator(const CallDescriptor* descriptor) | 810 explicit TailCallOperator(const CallDescriptor* descriptor) |
816 : Operator1<const CallDescriptor*>( | 811 : Operator1<const CallDescriptor*>( |
817 IrOpcode::kTailCall, descriptor->properties(), "TailCall", | 812 IrOpcode::kTailCall, descriptor->properties(), "TailCall", |
818 descriptor->InputCount() + descriptor->FrameStateCount(), 1, 1, 0, | 813 descriptor->InputCount() + descriptor->FrameStateCount(), 1, 1, 0, |
819 0, 1, descriptor) {} | 814 0, 1, descriptor) {} |
820 | 815 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 Handle<SharedFunctionInfo> shared_info, | 864 Handle<SharedFunctionInfo> shared_info, |
870 ContextCallingMode context_calling_mode) { | 865 ContextCallingMode context_calling_mode) { |
871 return new (zone()->New(sizeof(FrameStateFunctionInfo))) | 866 return new (zone()->New(sizeof(FrameStateFunctionInfo))) |
872 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, | 867 FrameStateFunctionInfo(type, parameter_count, local_count, shared_info, |
873 context_calling_mode); | 868 context_calling_mode); |
874 } | 869 } |
875 | 870 |
876 } // namespace compiler | 871 } // namespace compiler |
877 } // namespace internal | 872 } // namespace internal |
878 } // namespace v8 | 873 } // namespace v8 |
OLD | NEW |