| Index: src/objects-visiting-inl.h
|
| diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h
|
| index f77ebc4306cede20cdb31b5b8d8d0a4b3311d205..f6f15e796e33126efd742b1fc674524e8a56f191 100644
|
| --- a/src/objects-visiting-inl.h
|
| +++ b/src/objects-visiting-inl.h
|
| @@ -99,13 +99,10 @@ void Code::CodeIterateBody(ObjectVisitor* v) {
|
| RelocInfo::ModeMask(RelocInfo::DEBUG_BREAK_SLOT) |
|
| RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY);
|
|
|
| - // Use the relocation info pointer before it is visited by
|
| - // the heap compaction in the next statement.
|
| - RelocIterator it(this, mode_mask);
|
| -
|
| IteratePointer(v, kRelocationInfoOffset);
|
| IteratePointer(v, kDeoptimizationDataOffset);
|
|
|
| + RelocIterator it(this, mode_mask);
|
| for (; !it.done(); it.next()) {
|
| it.rinfo()->Visit(v);
|
| }
|
| @@ -122,10 +119,6 @@ void Code::CodeIterateBody(Heap* heap) {
|
| RelocInfo::ModeMask(RelocInfo::DEBUG_BREAK_SLOT) |
|
| RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY);
|
|
|
| - // Use the relocation info pointer before it is visited by
|
| - // the heap compaction in the next statement.
|
| - RelocIterator it(this, mode_mask);
|
| -
|
| StaticVisitor::VisitPointer(
|
| heap,
|
| reinterpret_cast<Object**>(this->address() + kRelocationInfoOffset));
|
| @@ -133,6 +126,7 @@ void Code::CodeIterateBody(Heap* heap) {
|
| heap,
|
| reinterpret_cast<Object**>(this->address() + kDeoptimizationDataOffset));
|
|
|
| + RelocIterator it(this, mode_mask);
|
| for (; !it.done(); it.next()) {
|
| it.rinfo()->template Visit<StaticVisitor>(heap);
|
| }
|
|
|