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

Unified Diff: include/v8.h

Issue 2867073002: [Api] Add an idle time garbage collection callback flag to GCCallbackFlags. (Closed)
Patch Set: [Api] Add an idle time garbage collection callback flag to GCCallbackFlags. Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 52266d50441059ddc4ba818874cdbd03b27b47bf..4446b87e1c2a739c3f68a6da4eb64a48ec54e36b 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -6186,6 +6186,8 @@ enum GCType {
* - kGCCallbackFlagCollectAllAvailableGarbage: The GC callback is called
* in a phase where V8 is trying to collect all available garbage
* (e.g., handling a low memory notification).
+ * - kGCCallbackScheduleIdleCollectGarbage: The GC callback is called to
+ * trigger an idle garbage collection.
*/
enum GCCallbackFlags {
kNoGCCallbackFlags = 0,
@@ -6194,6 +6196,7 @@ enum GCCallbackFlags {
kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3,
kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4,
kGCCallbackFlagCollectAllExternalMemory = 1 << 5,
+ kGCCallbackScheduleIdleCollectGarbage = 1 << 6,
};
typedef void (*GCCallback)(GCType type, GCCallbackFlags flags);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698