Index: Source/platform/heap/ThreadState.h |
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h |
index 99924ff7783ca6bf2ad4fa518762f0f170418790..c48d2cbff9845a891bbabd8f1ac85467e658a729 100644 |
--- a/Source/platform/heap/ThreadState.h |
+++ b/Source/platform/heap/ThreadState.h |
@@ -226,6 +226,11 @@ public: |
}; |
#endif |
+ enum V8GCType { |
+ V8MinorGC, |
+ V8MajorGC, |
+ }; |
+ |
// The NoAllocationScope class is used in debug mode to catch unwanted |
// allocations. E.g. allocations during GC. |
class NoAllocationScope final { |
@@ -328,7 +333,7 @@ public: |
void scheduleIdleGC(); |
void scheduleIdleLazySweep(); |
void schedulePreciseGC(); |
- void scheduleV8FollowupGCIfNeeded(); |
+ void scheduleV8FollowupGCIfNeeded(V8GCType); |
void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); |
void schedulePageNavigationGC(); |
void scheduleGCIfNeeded(); |