Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: src/compiler/common-operator.cc

Issue 1697503002: [turbofan] Remove support for LazyBailout operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_trycatch-test-enable
Patch Set: Rebased. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698