v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 2573 | skipping to change at line 2573 | |||
enum AllocationAction { | enum AllocationAction { | |||
kAllocationActionAllocate = 1 << 0, | kAllocationActionAllocate = 1 << 0, | |||
kAllocationActionFree = 1 << 1, | kAllocationActionFree = 1 << 1, | |||
kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFre e | kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFre e | |||
}; | }; | |||
typedef void (*MemoryAllocationCallback)(ObjectSpace space, | typedef void (*MemoryAllocationCallback)(ObjectSpace space, | |||
AllocationAction action, | AllocationAction action, | |||
int size); | int size); | |||
// --- Leave Script Callback --- | ||||
typedef void (*CallCompletedCallback)(); | ||||
// --- Failed Access Check Callback --- | // --- Failed Access Check Callback --- | |||
typedef void (*FailedAccessCheckCallback)(Local<Object> target, | typedef void (*FailedAccessCheckCallback)(Local<Object> target, | |||
AccessType type, | AccessType type, | |||
Local<Value> data); | Local<Value> data); | |||
// --- AllowCodeGenerationFromStrings callbacks --- | // --- AllowCodeGenerationFromStrings callbacks --- | |||
/** | /** | |||
* Callback to check if code generation from strings is allowed. See | * Callback to check if code generation from strings is allowed. See | |||
* Context::AllowCodeGenerationFromStrings. | * Context::AllowCodeGenerationFromStrings. | |||
skipping to change at line 2966 | skipping to change at line 2969 | |||
/** | /** | |||
* 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); | |||
/** | /** | |||
* This function removes callback which was installed by | * Removes callback that was installed by AddMemoryAllocationCallback. | |||
* AddMemoryAllocationCallback function. | ||||
*/ | */ | |||
static void RemoveMemoryAllocationCallback(MemoryAllocationCallback callb ack); | static void RemoveMemoryAllocationCallback(MemoryAllocationCallback callb ack); | |||
/** | /** | |||
* Adds a callback to notify the host application when a script finished | ||||
* running. If a script re-enters the runtime during executing, the | ||||
* CallCompletedCallback is only invoked when the outer-most script | ||||
* execution ends. Executing scripts inside the callback do not trigger | ||||
* further callbacks. | ||||
*/ | ||||
static void AddCallCompletedCallback(CallCompletedCallback callback); | ||||
/** | ||||
* Removes callback that was installed by AddCallCompletedCallback. | ||||
*/ | ||||
static void RemoveCallCompletedCallback(CallCompletedCallback callback); | ||||
/** | ||||
* Allows the host application to group objects together. If one | * Allows the host application to group objects together. If one | |||
* object in the group is alive, all objects in the group are alive. | * object in the group is alive, all objects in the group are alive. | |||
* After each garbage collection, object groups are removed. It is | * After each garbage collection, object groups are removed. It is | |||
* intended to be used in the before-garbage-collection callback | * intended to be used in the before-garbage-collection callback | |||
* function, for instance to simulate DOM tree connections among JS | * function, for instance to simulate DOM tree connections among JS | |||
* wrapper objects. | * wrapper objects. | |||
* See v8-profiler.h for RetainedObjectInfo interface description. | * See v8-profiler.h for RetainedObjectInfo interface description. | |||
*/ | */ | |||
static void AddObjectGroup(Persistent<Value>* objects, | static void AddObjectGroup(Persistent<Value>* objects, | |||
size_t length, | size_t length, | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 18 lines changed or added | |||