Index: src/compiler/js-create-lowering.cc |
diff --git a/src/compiler/js-create-lowering.cc b/src/compiler/js-create-lowering.cc |
index a8ddb56378242327079d83176970c218be952759..1a4972f625fee918b5ca8661d0960a9fa4a37be7 100644 |
--- a/src/compiler/js-create-lowering.cc |
+++ b/src/compiler/js-create-lowering.cc |
@@ -751,6 +751,7 @@ Reduction JSCreateLowering::ReduceJSCreateArray(Node* node) { |
} |
Reduction JSCreateLowering::ReduceJSCreateClosure(Node* node) { |
+ if (!FLAG_turbo_lower_create_closure) return NoChange(); |
DCHECK_EQ(IrOpcode::kJSCreateClosure, node->opcode()); |
CreateClosureParameters const& p = CreateClosureParametersOf(node->op()); |
Handle<SharedFunctionInfo> shared = p.shared_info(); |