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
This commit is contained in:
christian.plesner.hansen@gmail.com 2009-09-04 11:05:16 +00:00
parent 2364f20cc5
commit cf2a0fa068

View File

@ -1210,6 +1210,7 @@ void Serializer::PutContextStack() {
for (int i = contexts.length() - 1; i >= 0; i--) { for (int i = contexts.length() - 1; i >= 0; i--) {
HandleScopeImplementer::instance()->SaveContext(contexts[i]); HandleScopeImplementer::instance()->SaveContext(contexts[i]);
} }
writer_->PutC('C');
writer_->PutC('['); writer_->PutC('[');
writer_->PutInt(contexts.length()); writer_->PutInt(contexts.length());
if (!contexts.is_empty()) { if (!contexts.is_empty()) {
@ -1546,7 +1547,8 @@ void Deserializer::GetGlobalHandleStack(List<Handle<Object> >* stack) {
void Deserializer::GetContextStack() { void Deserializer::GetContextStack() {
reader_.ExpectC('['); reader_.ExpectC('C');
CHECK_EQ(reader_.GetC(), '[');
int count = reader_.GetInt(); int count = reader_.GetInt();
List<Context*> entered_contexts(count); List<Context*> entered_contexts(count);
if (count > 0) { if (count > 0) {