Fix serialization references to Cell objects.
authoryangguo@chromium.org <yangguo@chromium.org>
Thu, 28 Aug 2014 10:51:43 +0000 (10:51 +0000)
committeryangguo@chromium.org <yangguo@chromium.org>
Thu, 28 Aug 2014 10:51:43 +0000 (10:51 +0000)
R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/514783002

Patch from Slava Chigrin <vchigrin@yandex-team.ru>.

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23484 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/serialize.cc

index d13b00cfccab95f4fc7cae16ca0676720ddd8bb8..5de44fd16d18f0d19f435f9f11040368c9d4c030 100644 (file)
@@ -1636,6 +1636,7 @@ void Serializer::ObjectSerializer::VisitCell(RelocInfo* rinfo) {
   int skip = OutputRawData(rinfo->pc(), kCanReturnSkipInsteadOfSkipping);
   Cell* object = Cell::cast(rinfo->target_cell());
   serializer_->SerializeObject(object, kPlain, kInnerPointer, skip);
+  bytes_processed_so_far_ += kPointerSize;
 }