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 248e4b4d5e775d4a8ac88e7b947afdac83ab16b8..1dbe4a0c3164739150b641a2f4197347b965e3d2 100644 |
--- a/test/cctest/compiler/test-js-typed-lowering.cc |
+++ b/test/cctest/compiler/test-js-typed-lowering.cc |
@@ -25,11 +25,11 @@ class JSTypedLoweringTester : public HandleAndZoneScope { |
simplified(main_zone()), |
common(main_zone()), |
graph(main_zone()), |
- typer(main_zone()), |
+ typer(&graph, MaybeHandle<Context>()), |
context_node(NULL) { |
- typer.DecorateGraph(&graph); |
- Node* s = graph.NewNode(common.Start(num_parameters)); |
- graph.SetStart(s); |
+ graph.SetStart(graph.NewNode(common.Start(num_parameters))); |
+ graph.SetEnd(graph.NewNode(common.End())); |
+ typer.Run(); |
} |
Isolate* isolate; |
@@ -50,7 +50,7 @@ class JSTypedLoweringTester : public HandleAndZoneScope { |
} |
Node* reduce(Node* node) { |
- JSGraph jsgraph(&graph, &common, &typer); |
+ JSGraph jsgraph(&graph, &common); |
JSTypedLowering reducer(&jsgraph); |
Reduction reduction = reducer.Reduce(node); |
if (reduction.Changed()) return reduction.replacement(); |