Index: test/cctest/compiler/test-representation-change.cc |
diff --git a/test/cctest/compiler/test-representation-change.cc b/test/cctest/compiler/test-representation-change.cc |
index 7311890538f7e429ceb775291c605c3911c02502..d28cf4b4b82001c1473a3149cf85bd5a68bc4d00 100644 |
--- a/test/cctest/compiler/test-representation-change.cc |
+++ b/test/cctest/compiler/test-representation-change.cc |
@@ -22,11 +22,13 @@ namespace compiler { |
class RepresentationChangerTester : public HandleAndZoneScope, |
public GraphAndBuilders { |
public: |
- RepresentationChangerTester() |
+ explicit RepresentationChangerTester(int num_parameters = 0) |
: GraphAndBuilders(main_zone()), |
typer_(main_zone()), |
jsgraph_(main_graph_, &main_common_, &typer_), |
changer_(&jsgraph_, &main_simplified_, &main_machine_, main_isolate()) { |
+ Node* s = graph()->NewNode(common()->Start(num_parameters)); |
+ graph()->SetStart(s); |
} |
Typer typer_; |
@@ -60,7 +62,7 @@ class RepresentationChangerTester : public HandleAndZoneScope, |
} |
Node* Parameter(int index = 0) { |
- return graph()->NewNode(common()->Parameter(index)); |
+ return graph()->NewNode(common()->Parameter(index), graph()->start()); |
} |
void CheckTypeError(RepTypeUnion from, RepTypeUnion to) { |