v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 3142 | skipping to change at line 3142 | |||
static void RemoveGCPrologueCallback(GCPrologueCallback callback); | static void RemoveGCPrologueCallback(GCPrologueCallback callback); | |||
/** | /** | |||
* The function is deprecated. Please use AddGCPrologueCallback instead. | * The function is deprecated. Please use AddGCPrologueCallback instead. | |||
* Enables the host application to receive a notification before a | * Enables the host application to receive a notification before a | |||
* garbage collection. Allocations are not allowed in the | * garbage collection. Allocations are not allowed in the | |||
* callback function, you therefore cannot manipulate objects (set | * callback function, you therefore cannot manipulate objects (set | |||
* or delete properties for example) since it is possible such | * or delete properties for example) since it is possible such | |||
* operations will result in the allocation of objects. | * operations will result in the allocation of objects. | |||
*/ | */ | |||
static void SetGlobalGCPrologueCallback(GCCallback); | V8_DEPRECATED(static void SetGlobalGCPrologueCallback(GCCallback)); | |||
/** | /** | |||
* Enables the host application to receive a notification after a | * Enables the host application to receive a notification after a | |||
* garbage collection. Allocations are not allowed in the | * garbage collection. Allocations are not allowed in the | |||
* callback function, you therefore cannot manipulate objects (set | * callback function, you therefore cannot manipulate objects (set | |||
* or delete properties for example) since it is possible such | * or delete properties for example) since it is possible such | |||
* operations will result in the allocation of objects. It is possible | * operations will result in the allocation of objects. It is possible | |||
* to specify the GCType filter for your callback. But it is not possible to | * to specify the GCType filter for your callback. But it is not possible to | |||
* register the same callback function two times with different | * register the same callback function two times with different | |||
* GCType filters. | * GCType filters. | |||
skipping to change at line 3171 | skipping to change at line 3171 | |||
static void RemoveGCEpilogueCallback(GCEpilogueCallback callback); | static void RemoveGCEpilogueCallback(GCEpilogueCallback callback); | |||
/** | /** | |||
* The function is deprecated. Please use AddGCEpilogueCallback instead. | * The function is deprecated. Please use AddGCEpilogueCallback instead. | |||
* Enables the host application to receive a notification after a | * Enables the host application to receive a notification after a | |||
* major garbage collection. Allocations are not allowed in the | * major garbage collection. Allocations are not allowed in the | |||
* callback function, you therefore cannot manipulate objects (set | * callback function, you therefore cannot manipulate objects (set | |||
* or delete properties for example) since it is possible such | * or delete properties for example) since it is possible such | |||
* operations will result in the allocation of objects. | * operations will result in the allocation of objects. | |||
*/ | */ | |||
static void SetGlobalGCEpilogueCallback(GCCallback); | V8_DEPRECATED(static void SetGlobalGCEpilogueCallback(GCCallback)); | |||
/** | /** | |||
* Enables the host application to provide a mechanism to be notified | * Enables the host application to provide a mechanism to be notified | |||
* and perform custom logging when V8 Allocates Executable Memory. | * and perform custom logging when V8 Allocates Executable Memory. | |||
*/ | */ | |||
static void AddMemoryAllocationCallback(MemoryAllocationCallback callback , | static void AddMemoryAllocationCallback(MemoryAllocationCallback callback , | |||
ObjectSpace space, | ObjectSpace space, | |||
AllocationAction action); | AllocationAction action); | |||
/** | /** | |||
skipping to change at line 3415 | skipping to change at line 3415 | |||
*/ | */ | |||
static void VisitExternalResources(ExternalResourceVisitor* visitor); | static void VisitExternalResources(ExternalResourceVisitor* visitor); | |||
/** | /** | |||
* Iterates through all the persistent handles in the current isolate's h eap | * Iterates through all the persistent handles in the current isolate's h eap | |||
* that have class_ids. | * that have class_ids. | |||
*/ | */ | |||
static void VisitHandlesWithClassIds(PersistentHandleVisitor* visitor); | static void VisitHandlesWithClassIds(PersistentHandleVisitor* visitor); | |||
/** | /** | |||
* Iterates through all the persistent handles in the current isolate's h | ||||
eap | ||||
* that have class_ids and are candidates to be marked as partially depen | ||||
dent | ||||
* handles. This will visit handles to young objects created since the la | ||||
st | ||||
* garbage collection but is free to visit an arbitrary superset of these | ||||
* objects. | ||||
*/ | ||||
static void VisitHandlesForPartialDependence( | ||||
Isolate* isolate, PersistentHandleVisitor* visitor); | ||||
/** | ||||
* 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 | * 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 | * on scale from 1 to 1000. There is no guarantee that the actual work wi ll | |||
* match the hint. | * match the hint. | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 15 lines changed or added | |||