v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 1624 | skipping to change at line 1624 | |||
V8EXPORT Local<Object> Clone(); | V8EXPORT Local<Object> Clone(); | |||
/** | /** | |||
* Set the backing store of the indexed properties to be managed by the | * Set the backing store of the indexed properties to be managed by the | |||
* embedding layer. Access to the indexed properties will follow the rule s | * embedding layer. Access to the indexed properties will follow the rule s | |||
* spelled out in CanvasPixelArray. | * spelled out in CanvasPixelArray. | |||
* Note: The embedding program still owns the data and needs to ensure th at | * Note: The embedding program still owns the data and needs to ensure th at | |||
* the backing store is preserved while V8 has a reference. | * the backing store is preserved while V8 has a reference. | |||
*/ | */ | |||
V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length); | V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length); | |||
bool HasIndexedPropertiesInPixelData(); | V8EXPORT bool HasIndexedPropertiesInPixelData(); | |||
uint8_t* GetIndexedPropertiesPixelData(); | V8EXPORT uint8_t* GetIndexedPropertiesPixelData(); | |||
int GetIndexedPropertiesPixelDataLength(); | V8EXPORT int GetIndexedPropertiesPixelDataLength(); | |||
/** | /** | |||
* Set the backing store of the indexed properties to be managed by the | * Set the backing store of the indexed properties to be managed by the | |||
* embedding layer. Access to the indexed properties will follow the rule s | * embedding layer. Access to the indexed properties will follow the rule s | |||
* spelled out for the CanvasArray subtypes in the WebGL specification. | * spelled out for the CanvasArray subtypes in the WebGL specification. | |||
* Note: The embedding program still owns the data and needs to ensure th at | * Note: The embedding program still owns the data and needs to ensure th at | |||
* the backing store is preserved while V8 has a reference. | * the backing store is preserved while V8 has a reference. | |||
*/ | */ | |||
V8EXPORT void SetIndexedPropertiesToExternalArrayData( | V8EXPORT void SetIndexedPropertiesToExternalArrayData( | |||
void* data, | void* data, | |||
ExternalArrayType array_type, | ExternalArrayType array_type, | |||
int number_of_elements); | int number_of_elements); | |||
bool HasIndexedPropertiesInExternalArrayData(); | V8EXPORT bool HasIndexedPropertiesInExternalArrayData(); | |||
void* GetIndexedPropertiesExternalArrayData(); | V8EXPORT void* GetIndexedPropertiesExternalArrayData(); | |||
ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); | V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType(); | |||
int GetIndexedPropertiesExternalArrayDataLength(); | V8EXPORT int GetIndexedPropertiesExternalArrayDataLength(); | |||
V8EXPORT static Local<Object> New(); | V8EXPORT static Local<Object> New(); | |||
static inline Object* Cast(Value* obj); | static inline Object* Cast(Value* obj); | |||
private: | private: | |||
V8EXPORT Object(); | V8EXPORT Object(); | |||
V8EXPORT static void CheckCast(Value* obj); | V8EXPORT static void CheckCast(Value* obj); | |||
V8EXPORT Local<Value> CheckedGetInternalField(int index); | V8EXPORT Local<Value> CheckedGetInternalField(int index); | |||
V8EXPORT void* SlowGetPointerFromInternalField(int index); | V8EXPORT void* SlowGetPointerFromInternalField(int index); | |||
/** | /** | |||
skipping to change at line 3008 | skipping to change at line 3008 | |||
* object that was associated with this context before a call to | * object that was associated with this context before a call to | |||
* DetachGlobal. | * DetachGlobal. | |||
*/ | */ | |||
void ReattachGlobal(Handle<Object> global_object); | void ReattachGlobal(Handle<Object> global_object); | |||
/** Creates a new context. | /** Creates a new context. | |||
* | * | |||
* Returns a persistent handle to the newly allocated context. This | * Returns a persistent handle to the newly allocated context. This | |||
* persistent handle has to be disposed when the context is no | * persistent handle has to be disposed when the context is no | |||
* longer used so the context can be garbage collected. | * longer used so the context can be garbage collected. | |||
* | ||||
* \param extensions An optional extension configuration containing | ||||
* the extensions to be installed in the newly created context. | ||||
* | ||||
* \param global_template An optional object template from which the | ||||
* global object for the newly created context will be created. | ||||
* | ||||
* \param global_object An optional global object to be reused for | ||||
* the newly created context. This global object must have been | ||||
* created by a previous call to Context::New with the same global | ||||
* template. The state of the global object will be completely reset | ||||
* and only object identify will remain. | ||||
*/ | */ | |||
static Persistent<Context> New( | static Persistent<Context> New( | |||
ExtensionConfiguration* extensions = NULL, | ExtensionConfiguration* extensions = NULL, | |||
Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), | Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), | |||
Handle<Value> global_object = Handle<Value>()); | Handle<Value> global_object = Handle<Value>()); | |||
/** Returns the last entered context. */ | /** Returns the last entered context. */ | |||
static Local<Context> GetEntered(); | static Local<Context> GetEntered(); | |||
/** Returns the context that is on the top of the stack. */ | /** Returns the context that is on the top of the stack. */ | |||
End of changes. 3 change blocks. | ||||
7 lines changed or deleted | 19 lines changed or added | |||