| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/heap/heap.h" | 5 #include "src/heap/heap.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/api.h" | 8 #include "src/api.h" |
| 9 #include "src/ast/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 return Scavenger::CheckAndScavengeObject( | 1665 return Scavenger::CheckAndScavengeObject( |
| 1666 this, reinterpret_cast<Address>(addr)); | 1666 this, reinterpret_cast<Address>(addr)); |
| 1667 }); | 1667 }); |
| 1668 }); | 1668 }); |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 { | 1671 { |
| 1672 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_WEAK); | 1672 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_WEAK); |
| 1673 // Copy objects reachable from the encountered weak collections list. | 1673 // Copy objects reachable from the encountered weak collections list. |
| 1674 scavenge_visitor.VisitPointer(&encountered_weak_collections_); | 1674 scavenge_visitor.VisitPointer(&encountered_weak_collections_); |
| 1675 // Copy objects reachable from the encountered weak cells. | |
| 1676 scavenge_visitor.VisitPointer(&encountered_weak_cells_); | |
| 1677 } | 1675 } |
| 1678 | 1676 |
| 1679 { | 1677 { |
| 1680 // Copy objects reachable from the code flushing candidates list. | 1678 // Copy objects reachable from the code flushing candidates list. |
| 1681 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_CODE_FLUSH_CANDIDATES); | 1679 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_CODE_FLUSH_CANDIDATES); |
| 1682 MarkCompactCollector* collector = mark_compact_collector(); | 1680 MarkCompactCollector* collector = mark_compact_collector(); |
| 1683 if (collector->is_code_flushing_enabled()) { | 1681 if (collector->is_code_flushing_enabled()) { |
| 1684 collector->code_flusher()->IteratePointersToFromSpace(&scavenge_visitor); | 1682 collector->code_flusher()->IteratePointersToFromSpace(&scavenge_visitor); |
| 1685 } | 1683 } |
| 1686 } | 1684 } |
| (...skipping 4793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6480 } | 6478 } |
| 6481 | 6479 |
| 6482 | 6480 |
| 6483 // static | 6481 // static |
| 6484 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6482 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6485 return StaticVisitorBase::GetVisitorId(map); | 6483 return StaticVisitorBase::GetVisitorId(map); |
| 6486 } | 6484 } |
| 6487 | 6485 |
| 6488 } // namespace internal | 6486 } // namespace internal |
| 6489 } // namespace v8 | 6487 } // namespace v8 |
| OLD | NEW |