Index: test/cctest/compiler/test-js-typed-lowering.cc |
diff --git a/test/cctest/compiler/test-js-typed-lowering.cc b/test/cctest/compiler/test-js-typed-lowering.cc |
index 99cc77e3d69852cf09f3845f81375141226c7e65..e9cc5156eca83b27760d684025eb7924a52b5c4d 100644 |
--- a/test/cctest/compiler/test-js-typed-lowering.cc |
+++ b/test/cctest/compiler/test-js-typed-lowering.cc |
@@ -89,7 +89,9 @@ class JSTypedLoweringTester : public HandleAndZoneScope { |
Node* reduce(Node* node) { |
JSGraph jsgraph(main_isolate(), &graph, &common, &javascript, &machine); |
- JSTypedLowering reducer(&jsgraph, main_zone()); |
+ // TODO(titzer): mock the GraphReducer here for better unit testing. |
+ GraphReducer graph_reducer(&graph, main_zone()); |
+ JSTypedLowering reducer(&graph_reducer, &jsgraph, main_zone()); |
Reduction reduction = reducer.Reduce(node); |
if (reduction.Changed()) return reduction.replacement(); |
return node; |