v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 1679 | skipping to change at line 1679 | |||
class Array : public Object { | class Array : public Object { | |||
public: | public: | |||
V8EXPORT uint32_t Length() const; | V8EXPORT uint32_t Length() const; | |||
/** | /** | |||
* Clones an element at index |index|. Returns an empty | * Clones an element at index |index|. Returns an empty | |||
* handle if cloning fails (for any reason). | * handle if cloning fails (for any reason). | |||
*/ | */ | |||
V8EXPORT Local<Object> CloneElementAt(uint32_t index); | V8EXPORT Local<Object> CloneElementAt(uint32_t index); | |||
/** | ||||
* Creates a JavaScript array with the given length. If the length | ||||
* is negative the returned array will have length 0. | ||||
*/ | ||||
V8EXPORT static Local<Array> New(int length = 0); | V8EXPORT static Local<Array> New(int length = 0); | |||
static inline Array* Cast(Value* obj); | static inline Array* Cast(Value* obj); | |||
private: | private: | |||
V8EXPORT Array(); | V8EXPORT Array(); | |||
static void CheckCast(Value* obj); | static void CheckCast(Value* obj); | |||
}; | }; | |||
/** | /** | |||
* A JavaScript function object (ECMA-262, 15.3). | * A JavaScript function object (ECMA-262, 15.3). | |||
*/ | */ | |||
class Function : public Object { | class Function : public Object { | |||
skipping to change at line 2655 | skipping to change at line 2660 | |||
* 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, | |||
RetainedObjectInfo* info = NULL); | RetainedObjectInfo* info = NULL); | |||
/** | /** | |||
* Allows the host application to declare implicit references between | ||||
* the objects: if |parent| is alive, all |children| are alive too. | ||||
* After each garbage collection, all implicit references | ||||
* are removed. It is intended to be used in the before-garbage-collecti | ||||
on | ||||
* callback function. | ||||
*/ | ||||
static void AddImplicitReferences(Persistent<Object> parent, | ||||
Persistent<Value>* children, | ||||
size_t length); | ||||
/** | ||||
* Initializes from snapshot if possible. Otherwise, attempts to | * Initializes from snapshot if possible. Otherwise, attempts to | |||
* initialize from scratch. This function is called implicitly if | * initialize from scratch. This function is called implicitly if | |||
* you use the API without calling it first. | * you use the API without calling it first. | |||
*/ | */ | |||
static bool Initialize(); | static bool Initialize(); | |||
/** | /** | |||
* Adjusts the amount of registered external memory. Used to give | * Adjusts the amount of registered external memory. Used to give | |||
* V8 an indication of the amount of externally allocated memory | * V8 an indication of the amount of externally allocated memory | |||
* that is kept alive by JavaScript objects. V8 uses this to decide | * that is kept alive by JavaScript objects. V8 uses this to decide | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 17 lines changed or added | |||