| 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/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 } | 1668 } |
| 1669 | 1669 |
| 1670 { | 1670 { |
| 1671 // Copy objects reachable from the old generation. | 1671 // Copy objects reachable from the old generation. |
| 1672 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_OLD_TO_NEW_POINTERS); | 1672 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_OLD_TO_NEW_POINTERS); |
| 1673 RememberedSet<OLD_TO_NEW>::Iterate(this, [this](Address addr) { | 1673 RememberedSet<OLD_TO_NEW>::Iterate(this, [this](Address addr) { |
| 1674 return Scavenger::CheckAndScavengeObject(this, addr); | 1674 return Scavenger::CheckAndScavengeObject(this, addr); |
| 1675 }); | 1675 }); |
| 1676 | 1676 |
| 1677 RememberedSet<OLD_TO_NEW>::IterateTyped( | 1677 RememberedSet<OLD_TO_NEW>::IterateTyped( |
| 1678 this, [this](SlotType type, Address addr) { | 1678 this, [this](SlotType type, Address host_addr, Address addr) { |
| 1679 return UpdateTypedSlotHelper::UpdateTypedSlot( | 1679 return UpdateTypedSlotHelper::UpdateTypedSlot( |
| 1680 isolate(), type, addr, [this](Object** addr) { | 1680 isolate(), type, addr, [this](Object** addr) { |
| 1681 // We expect that objects referenced by code are long living. | 1681 // We expect that objects referenced by code are long living. |
| 1682 // If we do not force promotion, then we need to clear | 1682 // If we do not force promotion, then we need to clear |
| 1683 // old_to_new slots in dead code objects after mark-compact. | 1683 // old_to_new slots in dead code objects after mark-compact. |
| 1684 return Scavenger::CheckAndScavengeObject( | 1684 return Scavenger::CheckAndScavengeObject( |
| 1685 this, reinterpret_cast<Address>(addr)); | 1685 this, reinterpret_cast<Address>(addr)); |
| 1686 }); | 1686 }); |
| 1687 }); | 1687 }); |
| 1688 } | 1688 } |
| (...skipping 4714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6403 } | 6403 } |
| 6404 | 6404 |
| 6405 | 6405 |
| 6406 // static | 6406 // static |
| 6407 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6407 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6408 return StaticVisitorBase::GetVisitorId(map); | 6408 return StaticVisitorBase::GetVisitorId(map); |
| 6409 } | 6409 } |
| 6410 | 6410 |
| 6411 } // namespace internal | 6411 } // namespace internal |
| 6412 } // namespace v8 | 6412 } // namespace v8 |
| OLD | NEW |