From cf2a0fa068274e1e55c5f40775a4ca5961217d60 Mon Sep 17 00:00:00 2001 From: "christian.plesner.hansen@gmail.com" Date: Fri, 4 Sep 2009 11:05:16 +0000 Subject: [PATCH] Fixed serializer issue. Review URL: http://codereview.chromium.org/194023 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2824 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/serialize.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/serialize.cc b/src/serialize.cc index 9c141da05d..f65235aca8 100644 --- a/src/serialize.cc +++ b/src/serialize.cc @@ -1210,6 +1210,7 @@ void Serializer::PutContextStack() { for (int i = contexts.length() - 1; i >= 0; i--) { HandleScopeImplementer::instance()->SaveContext(contexts[i]); } + writer_->PutC('C'); writer_->PutC('['); writer_->PutInt(contexts.length()); if (!contexts.is_empty()) { @@ -1546,7 +1547,8 @@ void Deserializer::GetGlobalHandleStack(List >* stack) { void Deserializer::GetContextStack() { - reader_.ExpectC('['); + reader_.ExpectC('C'); + CHECK_EQ(reader_.GetC(), '['); int count = reader_.GetInt(); List entered_contexts(count); if (count > 0) {