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 |