v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 3127 | skipping to change at line 3127 | |||
*/ | */ | |||
static void GetHeapStatistics(HeapStatistics* heap_statistics); | static void GetHeapStatistics(HeapStatistics* heap_statistics); | |||
/** | /** | |||
* Optional notification that the embedder is idle. | * Optional notification that the embedder is idle. | |||
* V8 uses the notification to reduce memory footprint. | * V8 uses the notification to reduce memory footprint. | |||
* This call can be used repeatedly if the embedder remains idle. | * This call can be used repeatedly if the embedder remains idle. | |||
* Returns true if the embedder should stop calling IdleNotification | * Returns true if the embedder should stop calling IdleNotification | |||
* until real work has been done. This indicates that V8 has done | * until real work has been done. This indicates that V8 has done | |||
* as much cleanup as it will be able to do. | * as much cleanup as it will be able to do. | |||
* | ||||
* The hint argument specifies the amount of work to be done in the funct | ||||
ion | ||||
* on scale from 1 to 1000. There is no guarantee that the actual work wi | ||||
ll | ||||
* match the hint. | ||||
*/ | */ | |||
static bool IdleNotification(); | static bool IdleNotification(int hint = 1000); | |||
/** | /** | |||
* Optional notification that the system is running low on memory. | * Optional notification that the system is running low on memory. | |||
* V8 uses these notifications to attempt to free memory. | * V8 uses these notifications to attempt to free memory. | |||
*/ | */ | |||
static void LowMemoryNotification(); | static void LowMemoryNotification(); | |||
/** | /** | |||
* Optional notification that a context has been disposed. V8 uses | * Optional notification that a context has been disposed. V8 uses | |||
* these notifications to guide the GC heuristic. Returns the number | * these notifications to guide the GC heuristic. Returns the number | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 7 lines changed or added | |||