Export external array data accessors.

BUG=v8:1016
Review URL: http://codereview.chromium.org/6013011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6142 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2011-01-04 09:27:46 +00:00
parent c89021d162
commit 58782c556a

View File

@ -1651,9 +1651,9 @@ class Object : public Value {
* 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
@ -1666,10 +1666,10 @@ class Object : public Value {
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);