Index: test/unittests/compiler/js-builtin-reducer-unittest.cc |
diff --git a/test/unittests/compiler/js-builtin-reducer-unittest.cc b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
index a56fee1150e3107b367a398b302f105f5afce911..b452ba56c504bede2b523e2ee4facf0b8dc9aeb4 100644 |
--- a/test/unittests/compiler/js-builtin-reducer-unittest.cc |
+++ b/test/unittests/compiler/js-builtin-reducer-unittest.cc |
@@ -26,7 +26,9 @@ class JSBuiltinReducerTest : public TypedGraphTest { |
MachineOperatorBuilder::Flag::kNoFlags) { |
MachineOperatorBuilder machine(zone(), kMachPtr, flags); |
JSGraph jsgraph(isolate(), graph(), common(), javascript(), &machine); |
- JSBuiltinReducer reducer(&jsgraph); |
+ // TODO(titzer): mock the GraphReducer here for better unit testing. |
titzer
2015/06/05 12:30:50
u wot m8?
|
+ GraphReducer graph_reducer(zone(), graph()); |
+ JSBuiltinReducer reducer(&graph_reducer, &jsgraph); |
return reducer.Reduce(node); |
} |