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

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

Issue 1412443003: [turbofan] Introduce lazy bailout, masked as a call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Enable test Created 5 years, 2 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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