Index: test/cctest/test-ast.cc |
diff --git a/test/cctest/test-ast.cc b/test/cctest/test-ast.cc |
index 99cbb950ca27cb040ab3ff30f7ad3ce03dd040f3..c027e88a525ac84b6e27be4d41ca0339a46b1ebe 100644 |
--- a/test/cctest/test-ast.cc |
+++ b/test/cctest/test-ast.cc |
@@ -30,6 +30,7 @@ |
#include "src/v8.h" |
#include "src/ast/ast.h" |
+#include "src/isolate.h" |
#include "src/objects-inl.h" |
#include "src/zone/accounting-allocator.h" |
#include "test/cctest/cctest.h" |
@@ -37,12 +38,16 @@ |
using namespace v8::internal; |
TEST(List) { |
+ v8::V8::Initialize(); |
+ Isolate* isolate = CcTest::i_isolate(); |
+ |
List<AstNode*>* list = new List<AstNode*>(0); |
CHECK_EQ(0, list->length()); |
v8::internal::AccountingAllocator allocator; |
Zone zone(&allocator, ZONE_NAME); |
- AstValueFactory value_factory(&zone, 0); |
+ AstValueFactory value_factory(&zone, isolate->ast_string_constants(), |
+ isolate->heap()->HashSeed()); |
AstNodeFactory factory(&value_factory); |
AstNode* node = factory.NewEmptyStatement(kNoSourcePosition); |
list->Add(node); |