Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 109bfedd364f57069b811099b9b98136d981049c..ba74a3c2cea3395c09c90bcb45c67d73931746ec 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -1987,9 +1987,9 @@ Handle<JSFunction> CompileJSToWasmWrapper( |
typer.Run(roots); |
// Run generic and change lowering. |
- JSGenericLowering generic(true, &jsgraph); |
- ChangeLowering changes(&jsgraph); |
GraphReducer graph_reducer(&zone, &graph, jsgraph.Dead()); |
+ JSGenericLowering generic(true, &jsgraph); |
+ ChangeLowering changes(&graph_reducer, &jsgraph); |
graph_reducer.AddReducer(&changes); |
graph_reducer.AddReducer(&generic); |
graph_reducer.ReduceGraph(); |
@@ -2052,9 +2052,9 @@ Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module, |
typer.Run(roots); |
// Run generic and change lowering. |
- JSGenericLowering generic(true, &jsgraph); |
- ChangeLowering changes(&jsgraph); |
GraphReducer graph_reducer(&zone, &graph, jsgraph.Dead()); |
+ JSGenericLowering generic(true, &jsgraph); |
+ ChangeLowering changes(&graph_reducer, &jsgraph); |
graph_reducer.AddReducer(&changes); |
graph_reducer.AddReducer(&generic); |
graph_reducer.ReduceGraph(); |