Index: test/unittests/compiler/js-type-feedback-unittest.cc |
diff --git a/test/unittests/compiler/js-type-feedback-unittest.cc b/test/unittests/compiler/js-type-feedback-unittest.cc |
index 46eb437b8c488fca2dc4671d16f8dd3e02df0682..c243c5f088ea78197f658ce237774ecb2cfff670 100644 |
--- a/test/unittests/compiler/js-type-feedback-unittest.cc |
+++ b/test/unittests/compiler/js-type-feedback-unittest.cc |
@@ -41,8 +41,10 @@ class JSTypeFeedbackTest : public TypedGraphTest { |
MachineOperatorBuilder machine(zone()); |
JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine); |
JSTypeFeedbackTable table(zone()); |
- JSTypeFeedbackSpecializer reducer(&jsgraph, &table, nullptr, global_object, |
- &dependencies_); |
+ // TODO(titzer): mock the GraphReducer here for better unit testing. |
+ GraphReducer graph_reducer(graph(), zone()); |
+ JSTypeFeedbackSpecializer reducer(&graph_reducer, &jsgraph, &table, nullptr, |
+ global_object, &dependencies_); |
return reducer.Reduce(node); |
} |