summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/turboshaft/dead-code-elimination-phase.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/turboshaft/dead-code-elimination-phase.cc')
-rw-r--r--deps/v8/src/compiler/turboshaft/dead-code-elimination-phase.cc19
1 files changed, 19 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/turboshaft/dead-code-elimination-phase.cc b/deps/v8/src/compiler/turboshaft/dead-code-elimination-phase.cc
new file mode 100644
index 0000000000..b9de41214d
--- /dev/null
+++ b/deps/v8/src/compiler/turboshaft/dead-code-elimination-phase.cc
@@ -0,0 +1,19 @@
+// Copyright 2023 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "src/compiler/turboshaft/dead-code-elimination-phase.h"
+
+#include "src/compiler/js-heap-broker.h"
+#include "src/compiler/turboshaft/dead-code-elimination-reducer.h"
+
+namespace v8::internal::compiler::turboshaft {
+
+void DeadCodeEliminationPhase::Run(PipelineData* data, Zone* temp_zone) {
+ UnparkedScopeIfNeeded scope(data->broker(), DEBUG_BOOL);
+
+ turboshaft::OptimizationPhase<turboshaft::DeadCodeEliminationReducer>::Run(
+ data->isolate(), &data->graph(), temp_zone, data->node_origins());
+}
+
+} // namespace v8::internal::compiler::turboshaft