Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/heap/heap.cc

Issue 1994933002: [heap] Get rid of the wrapper in remembered-set.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 1662
1663 { 1663 {
1664 // Copy roots. 1664 // Copy roots.
1665 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_ROOTS); 1665 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_ROOTS);
1666 IterateRoots(&scavenge_visitor, VISIT_ALL_IN_SCAVENGE); 1666 IterateRoots(&scavenge_visitor, VISIT_ALL_IN_SCAVENGE);
1667 } 1667 }
1668 1668
1669 { 1669 {
1670 // Copy objects reachable from the old generation. 1670 // Copy objects reachable from the old generation.
1671 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_OLD_TO_NEW_POINTERS); 1671 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_OLD_TO_NEW_POINTERS);
1672 RememberedSet<OLD_TO_NEW>::IterateWithWrapper(this, 1672 RememberedSet<OLD_TO_NEW>::Iterate(this, [this](Address addr) {
1673 Scavenger::ScavengeObject); 1673 return Scavenger::CheckAndScavengeObject(this, addr);
1674 });
1674 } 1675 }
1675 1676
1676 { 1677 {
1677 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_WEAK); 1678 TRACE_GC(tracer(), GCTracer::Scope::SCAVENGER_WEAK);
1678 // Copy objects reachable from the encountered weak collections list. 1679 // Copy objects reachable from the encountered weak collections list.
1679 scavenge_visitor.VisitPointer(&encountered_weak_collections_); 1680 scavenge_visitor.VisitPointer(&encountered_weak_collections_);
1680 // Copy objects reachable from the encountered weak cells. 1681 // Copy objects reachable from the encountered weak cells.
1681 scavenge_visitor.VisitPointer(&encountered_weak_cells_); 1682 scavenge_visitor.VisitPointer(&encountered_weak_cells_);
1682 } 1683 }
1683 1684
(...skipping 4676 matching lines...) Expand 10 before | Expand all | Expand 10 after
6360 } 6361 }
6361 6362
6362 6363
6363 // static 6364 // static
6364 int Heap::GetStaticVisitorIdForMap(Map* map) { 6365 int Heap::GetStaticVisitorIdForMap(Map* map) {
6365 return StaticVisitorBase::GetVisitorId(map); 6366 return StaticVisitorBase::GetVisitorId(map);
6366 } 6367 }
6367 6368
6368 } // namespace internal 6369 } // namespace internal
6369 } // namespace v8 6370 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698