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
parent 2364f20c
......@@ -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<Handle<Object> >* stack) {
void Deserializer::GetContextStack() {
reader_.ExpectC('[');
reader_.ExpectC('C');
CHECK_EQ(reader_.GetC(), '[');
int count = reader_.GetInt();
List<Context*> entered_contexts(count);
if (count > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment