Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index 56d774f5d88ded561c9d4d65f21050ee0b478cb2..1a82a5d406bf156b231a5adef40cb1f5c261a2ee 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -709,22 +709,11 @@ class Heap { |
// should not happen during deserialization. |
void NotifyDeserializationComplete(); |
- intptr_t old_generation_allocation_limit() const { |
- return old_generation_allocation_limit_; |
- } |
- |
- bool always_allocate() { return always_allocate_scope_count_.Value() != 0; } |
- |
inline Address* NewSpaceAllocationTopAddress(); |
inline Address* NewSpaceAllocationLimitAddress(); |
inline Address* OldSpaceAllocationTopAddress(); |
inline Address* OldSpaceAllocationLimitAddress(); |
- bool CanExpandOldGeneration(int size) { |
- if (force_oom_) return false; |
- return (OldGenerationCapacity() + size) < MaxOldGenerationSize(); |
- } |
- |
// Clear the Instanceof cache (used when a prototype changes). |
inline void ClearInstanceofCache(); |
@@ -847,8 +836,6 @@ class Heap { |
// Check new space expansion criteria and expand semispaces if it was hit. |
void CheckNewSpaceExpansionCriteria(); |
- inline bool HeapIsFullEnoughToStartIncrementalMarking(intptr_t limit); |
- |
void VisitExternalResources(v8::ExternalResourceVisitor* visitor); |
// An object should be promoted if the object has survived a |
@@ -862,8 +849,6 @@ class Heap { |
void IncrementDeferredCount(v8::Isolate::UseCounterFeature feature); |
- inline bool OldGenerationAllocationLimitReached(); |
- |
// Completely clear the Instanceof cache (to stop it keeping objects alive |
// around a GC). |
inline void CompletelyClearInstanceofCache(); |
@@ -1846,6 +1831,22 @@ class Heap { |
intptr_t MinimumAllocationLimitGrowingStep(); |
+ intptr_t old_generation_allocation_limit() const { |
+ return old_generation_allocation_limit_; |
+ } |
+ |
+ bool always_allocate() { return always_allocate_scope_count_.Value() != 0; } |
+ |
+ bool CanExpandOldGeneration(int size) { |
+ if (force_oom_) return false; |
+ return (OldGenerationCapacity() + size) < MaxOldGenerationSize(); |
+ } |
+ |
+ bool ShouldExpandOldGenerationOnAllocationFailure(); |
+ |
+ enum class IncrementalMarkingLimit { kNoLimit, kSoftLimit, kHardLimit }; |
+ IncrementalMarkingLimit IncrementalMarkingLimitReached(); |
+ |
// =========================================================================== |
// Idle notification. ======================================================== |
// =========================================================================== |
@@ -2322,12 +2323,15 @@ class Heap { |
friend class HeapIterator; |
friend class IdleScavengeObserver; |
friend class IncrementalMarking; |
+ friend class IncrementalMarkingJob; |
friend class IteratePromotedObjectsVisitor; |
+ friend class LargeObjectSpace; |
friend class MarkCompactCollector; |
friend class MarkCompactMarkingVisitor; |
friend class NewSpace; |
friend class ObjectStatsCollector; |
friend class Page; |
+ friend class PagedSpace; |
friend class Scavenger; |
friend class StoreBuffer; |
friend class TestMemoryAllocatorScope; |