Index: test/unittests/compiler/graph-unittest.cc |
diff --git a/test/unittests/compiler/graph-unittest.cc b/test/unittests/compiler/graph-unittest.cc |
index 7fa8bc328d4e390eaeb217bc8a9cea2e3a9cd171..f13dbff2d3b8727e5cb789373fe476db1ad3f1af 100644 |
--- a/test/unittests/compiler/graph-unittest.cc |
+++ b/test/unittests/compiler/graph-unittest.cc |
@@ -58,7 +58,7 @@ Node* GraphTest::NumberConstant(volatile double value) { |
Node* GraphTest::HeapConstant(const Handle<HeapObject>& value) { |
Node* node = graph()->NewNode(common()->HeapConstant(value)); |
- Type* type = Type::HeapConstant(value, zone()); |
+ Type* type = Type::NewConstant(value, zone()); |
NodeProperties::SetType(node, type); |
return node; |
} |