| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 0501ccf5805a0c752a01c4876895ba2b7863bf53..baa74f5fe0207277c6bb49b980ebf5fd68dd6659 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -2267,13 +2267,13 @@ void MarkCompactCollector::MarkLiveObjects() {
|
| heap()->property_cell_space());
|
| HeapObject* cell;
|
| while ((cell = js_global_property_cell_iterator.Next()) != NULL) {
|
| - ASSERT(cell->IsJSGlobalPropertyCell());
|
| + ASSERT(cell->IsPropertyCell());
|
| if (IsMarked(cell)) {
|
| - int offset = JSGlobalPropertyCell::kValueOffset;
|
| + int offset = PropertyCell::kValueOffset;
|
| MarkCompactMarkingVisitor::VisitPointer(
|
| heap(),
|
| reinterpret_cast<Object**>(cell->address() + offset));
|
| - offset = JSGlobalPropertyCell::kTypeOffset;
|
| + offset = PropertyCell::kTypeOffset;
|
| MarkCompactMarkingVisitor::VisitPointer(
|
| heap(),
|
| reinterpret_cast<Object**>(cell->address() + offset));
|
| @@ -3431,14 +3431,14 @@ void MarkCompactCollector::EvacuateNewSpaceAndCandidates() {
|
| for (HeapObject* cell = js_global_property_cell_iterator.Next();
|
| cell != NULL;
|
| cell = js_global_property_cell_iterator.Next()) {
|
| - if (cell->IsJSGlobalPropertyCell()) {
|
| + if (cell->IsPropertyCell()) {
|
| Address value_address =
|
| reinterpret_cast<Address>(cell) +
|
| - (JSGlobalPropertyCell::kValueOffset - kHeapObjectTag);
|
| + (PropertyCell::kValueOffset - kHeapObjectTag);
|
| updating_visitor.VisitPointer(reinterpret_cast<Object**>(value_address));
|
| Address type_address =
|
| reinterpret_cast<Address>(cell) +
|
| - (JSGlobalPropertyCell::kTypeOffset - kHeapObjectTag);
|
| + (PropertyCell::kTypeOffset - kHeapObjectTag);
|
| updating_visitor.VisitPointer(reinterpret_cast<Object**>(type_address));
|
| }
|
| }
|
|
|