| Index: src/objects-visiting-inl.h
|
| diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h
|
| index 010f3068a9e3ce1b7e493cb513e3c8df9fef3562..5201a7b3180ecd2a8ad593f2b68aebc53e5bfa7a 100644
|
| --- a/src/objects-visiting-inl.h
|
| +++ b/src/objects-visiting-inl.h
|
| @@ -270,7 +270,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitEmbeddedPointer(
|
| // TODO(ulan): It could be better to record slots only for strongly embedded
|
| // objects here and record slots for weakly embedded object during clearing
|
| // of non-live references in mark-compact.
|
| - if (!rinfo->host()->IsWeakObject(object)) {
|
| + if (!Code::IsWeakEmbeddedObject(rinfo->host()->kind(), object)) {
|
| StaticVisitor::MarkObject(heap, object);
|
| }
|
| }
|
| @@ -282,7 +282,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCell(
|
| ASSERT(rinfo->rmode() == RelocInfo::CELL);
|
| Cell* cell = rinfo->target_cell();
|
| // No need to record slots because the cell space is not compacted during GC.
|
| - if (!rinfo->host()->IsWeakObject(cell)) {
|
| + if (!Code::IsWeakEmbeddedObject(rinfo->host()->kind(), cell)) {
|
| StaticVisitor::MarkObject(heap, cell);
|
| }
|
| }
|
| @@ -427,7 +427,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCode(
|
| Heap* heap = map->GetHeap();
|
| Code* code = Code::cast(object);
|
| if (FLAG_cleanup_code_caches_at_gc) {
|
| - code->ClearTypeFeedbackInfo(heap);
|
| + code->ClearTypeFeedbackCells(heap);
|
| }
|
| if (FLAG_age_code && !Serializer::enabled()) {
|
| code->MakeOlder(heap->mark_compact_collector()->marking_parity());
|
|
|