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

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

Issue 2032213003: Introduce api for incremental wrapper tracing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment Created 4 years, 6 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 | « include/v8.h ('k') | src/heap/mark-compact.h » ('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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 gc_state_ = SCAVENGE; 1619 gc_state_ = SCAVENGE;
1620 1620
1621 // Implements Cheney's copying algorithm 1621 // Implements Cheney's copying algorithm
1622 LOG(isolate_, ResourceEvent("scavenge", "begin")); 1622 LOG(isolate_, ResourceEvent("scavenge", "begin"));
1623 1623
1624 // Used for updating survived_since_last_expansion_ at function end. 1624 // Used for updating survived_since_last_expansion_ at function end.
1625 intptr_t survived_watermark = PromotedSpaceSizeOfObjects(); 1625 intptr_t survived_watermark = PromotedSpaceSizeOfObjects();
1626 1626
1627 scavenge_collector_->SelectScavengingVisitorsTable(); 1627 scavenge_collector_->SelectScavengingVisitorsTable();
1628 1628
1629 if (UsingEmbedderHeapTracer()) {
1630 // Register found wrappers with embedder so he can add them to his marking
1631 // deque and correctly manage the case when v8 scavenger collects the
1632 // wrappers by either keeping wrappables alive, or cleaning marking deque.
1633 mark_compact_collector()->RegisterWrappersWithEmbedderHeapTracer();
1634 }
1635
1629 array_buffer_tracker()->PrepareDiscoveryInNewSpace(); 1636 array_buffer_tracker()->PrepareDiscoveryInNewSpace();
1630 1637
1631 // Flip the semispaces. After flipping, to space is empty, from space has 1638 // Flip the semispaces. After flipping, to space is empty, from space has
1632 // live objects. 1639 // live objects.
1633 new_space_.Flip(); 1640 new_space_.Flip();
1634 new_space_.ResetAllocationInfo(); 1641 new_space_.ResetAllocationInfo();
1635 1642
1636 // We need to sweep newly copied objects which can be either in the 1643 // We need to sweep newly copied objects which can be either in the
1637 // to space or promoted to the old generation. For to-space 1644 // to space or promoted to the old generation. For to-space
1638 // objects, we treat the bottom of the to space as a queue. Newly 1645 // objects, we treat the bottom of the to space as a queue. Newly
(...skipping 4764 matching lines...) Expand 10 before | Expand all | Expand 10 after
6403 } 6410 }
6404 6411
6405 6412
6406 // static 6413 // static
6407 int Heap::GetStaticVisitorIdForMap(Map* map) { 6414 int Heap::GetStaticVisitorIdForMap(Map* map) {
6408 return StaticVisitorBase::GetVisitorId(map); 6415 return StaticVisitorBase::GetVisitorId(map);
6409 } 6416 }
6410 6417
6411 } // namespace internal 6418 } // namespace internal
6412 } // namespace v8 6419 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698