Index: test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
diff --git a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
index bc343060caa748453fca4974bd03df419942772f..7c561315b6485efa20a4cc1d790c9b0e50acae13 100644 |
--- a/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
+++ b/test/unittests/compiler/js-intrinsic-lowering-unittest.cc |
@@ -33,7 +33,9 @@ class JSIntrinsicLoweringTest : public GraphTest { |
MachineOperatorBuilder::kNoFlags) { |
MachineOperatorBuilder machine(zone(), kMachPtr, flags); |
JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine); |
- JSIntrinsicLowering reducer(&jsgraph); |
+ // TODO(titzer): mock the GraphReducer here for better unit testing. |
+ GraphReducer graph_reducer(graph(), zone()); |
+ JSIntrinsicLowering reducer(&graph_reducer, &jsgraph); |
return reducer.Reduce(node); |
} |