| Index: src/serialize.cc
|
| diff --git a/src/serialize.cc b/src/serialize.cc
|
| index eb001f9c62322008de93188cb1590a70d7f6aa8a..4e51cd396bfb824ecf0dc06544258f6b5753445d 100644
|
| --- a/src/serialize.cc
|
| +++ b/src/serialize.cc
|
| @@ -778,6 +778,7 @@ void Deserializer::ReadChunk(Object** current,
|
| bool write_barrier_needed = (current_object_address != NULL &&
|
| source_space != NEW_SPACE &&
|
| source_space != CELL_SPACE &&
|
| + source_space != PROPERTY_CELL_SPACE &&
|
| source_space != CODE_SPACE &&
|
| source_space != OLD_DATA_SPACE);
|
| while (current < limit) {
|
| @@ -838,8 +839,7 @@ void Deserializer::ReadChunk(Object** current,
|
| new_code_object->instruction_start()); \
|
| } else { \
|
| ASSERT(space_number == CODE_SPACE); \
|
| - JSGlobalPropertyCell* cell = \
|
| - JSGlobalPropertyCell::cast(new_object); \
|
| + Cell* cell = Cell::cast(new_object); \
|
| new_object = reinterpret_cast<Object*>( \
|
| cell->ValueAddress()); \
|
| } \
|
| @@ -879,6 +879,7 @@ void Deserializer::ReadChunk(Object** current,
|
| CASE_STATEMENT(where, how, within, OLD_POINTER_SPACE) \
|
| CASE_STATEMENT(where, how, within, CODE_SPACE) \
|
| CASE_STATEMENT(where, how, within, CELL_SPACE) \
|
| + CASE_STATEMENT(where, how, within, PROPERTY_CELL_SPACE) \
|
| CASE_STATEMENT(where, how, within, MAP_SPACE) \
|
| CASE_BODY(where, how, within, kAnyOldSpace)
|
|
|
| @@ -1566,10 +1567,9 @@ void Serializer::ObjectSerializer::VisitCodeEntry(Address entry_address) {
|
| }
|
|
|
|
|
| -void Serializer::ObjectSerializer::VisitGlobalPropertyCell(RelocInfo* rinfo) {
|
| - ASSERT(rinfo->rmode() == RelocInfo::GLOBAL_PROPERTY_CELL);
|
| - JSGlobalPropertyCell* cell =
|
| - JSGlobalPropertyCell::cast(rinfo->target_cell());
|
| +void Serializer::ObjectSerializer::VisitCell(RelocInfo* rinfo) {
|
| + ASSERT(rinfo->rmode() == RelocInfo::CELL);
|
| + Cell* cell = Cell::cast(rinfo->target_cell());
|
| int skip = OutputRawData(rinfo->pc(), kCanReturnSkipInsteadOfSkipping);
|
| serializer_->SerializeObject(cell, kPlain, kInnerPointer, skip);
|
| }
|
|
|