| Index: include/v8.h
|
| diff --git a/include/v8.h b/include/v8.h
|
| index e6c97cc82699be5cad201b237c5c24f0f7b13303..4df8c85cb7eab90f96cc9048d88a86711067e49e 100644
|
| --- a/include/v8.h
|
| +++ b/include/v8.h
|
| @@ -2944,11 +2944,25 @@ class V8_EXPORT ArrayBuffer : public Object {
|
| * Memory does not have to be initialized.
|
| */
|
| virtual void* AllocateUninitialized(size_t length) = 0;
|
| +
|
| + /**
|
| + * Allocate |length| bytes. Return NULL if allocation is not successful,
|
| + * otherwise return a pointer that is a multiple of |alignment|. Memory
|
| + * does not have to be initialized.
|
| + */
|
| + virtual void* Allocate(size_t length, size_t alignment) { return NULL; }
|
| +
|
| /**
|
| * Free the memory block of size |length|, pointed to by |data|.
|
| * That memory is guaranteed to be previously allocated by |Allocate|.
|
| */
|
| virtual void Free(void* data, size_t length) = 0;
|
| +
|
| + /**
|
| + * Free the memory block pointed to by |data|. That memory is guaranteed
|
| + * to be previously allocated by |Allocate|.
|
| + */
|
| + virtual void Free(void* data) {}
|
| };
|
|
|
| /**
|
|
|