Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 46f8ad6cd7474d21855dd6c9a30ce8df70846fa4..8e85444eee9faf38951d00d89e5897f3ba094240 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -99,10 +99,10 @@ static int make_code(TypeCode type, int id) { |
TEST(ExternalReferenceEncoder) { |
- OS::Setup(); |
Isolate* isolate = i::Isolate::Current(); |
isolate->stats_table()->SetCounterFunction(counter_function); |
- HEAP->Setup(false); |
+ v8::V8::Initialize(); |
+ |
ExternalReferenceEncoder encoder; |
CHECK_EQ(make_code(BUILTIN, Builtins::kArrayCode), |
Encode(encoder, Builtins::kArrayCode)); |
@@ -139,10 +139,10 @@ TEST(ExternalReferenceEncoder) { |
TEST(ExternalReferenceDecoder) { |
- OS::Setup(); |
Isolate* isolate = i::Isolate::Current(); |
isolate->stats_table()->SetCounterFunction(counter_function); |
- HEAP->Setup(false); |
+ v8::V8::Initialize(); |
+ |
ExternalReferenceDecoder decoder; |
CHECK_EQ(AddressOf(Builtins::kArrayCode), |
decoder.Decode(make_code(BUILTIN, Builtins::kArrayCode))); |