Reviewers: Erik Corry,

Description:
Fix ContextDeserialization and PartialDeserialization tests.

Space should be reserved twice before each deserialization.

[email protected]


Please review this at http://codereview.chromium.org/7550009/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M test/cctest/test-serialize.cc


Index: test/cctest/test-serialize.cc
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc
index 730d72a95bd2f2bb791b77b20d0103c8d5502314..46f8ad6cd7474d21855dd6c9a30ce8df70846fa4 100644
--- a/test/cctest/test-serialize.cc
+++ b/test/cctest/test-serialize.cc
@@ -459,7 +459,9 @@ DEPENDENT_TEST(PartialDeserialization, PartialSerialization) {
       CHECK(root->IsString());
     }
     v8::HandleScope handle_scope;
-    Handle<Object>root_handle(root);
+    Handle<Object> root_handle(root);
+
+    ReserveSpaceForPartialSnapshot(file_name);

     Object* root2;
     {
@@ -542,7 +544,9 @@ DEPENDENT_TEST(ContextDeserialization, ContextSerialization) {
       CHECK(root->IsContext());
     }
     v8::HandleScope handle_scope;
-    Handle<Object>root_handle(root);
+    Handle<Object> root_handle(root);
+
+    ReserveSpaceForPartialSnapshot(file_name);

     Object* root2;
     {


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to