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

Unified Diff: src/heap/mark-compact.h

Issue 1535723002: [heap] Use HashMap as scratchpad backing store (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revive the founder counter on the AllocationSite Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index 1ade4372f61d0909b1caad9b8d966935f06d0022..c01bfc02af3d96d66e559acf52993de6214a04ee 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -511,6 +511,8 @@ class MarkCompactCollector {
class HeapObjectVisitor;
class SweeperTask;
+ static const int kInitialLocalPretenuringFeedbackCapacity = 256;
+
explicit MarkCompactCollector(Heap* heap);
bool WillBeDeoptimized(Code* code);
@@ -696,7 +698,10 @@ class MarkCompactCollector {
// regions to each space's free list.
void SweepSpaces();
- void EvacuateNewSpace();
+ void EvacuateNewSpacePrologue();
+
+ // Returns local pretenuring feedback.
+ HashMap* EvacuateNewSpaceInParallel();
void AddEvacuationSlotsBufferSynchronized(
SlotsBuffer* evacuation_slots_buffer);
@@ -772,6 +777,8 @@ class MarkCompactCollector {
List<Page*> evacuation_candidates_;
+ List<MemoryChunk*> newspace_evacuation_candidates_;
+
// The evacuation_slots_buffers_ are used by the compaction threads.
// When a compaction task finishes, it uses
// AddEvacuationSlotsbufferSynchronized to adds its slots buffer to the
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698