Version 3.0.6
Allowed getters and setters on JSArray elements (Issue 900).
Stopped JSON objects from hitting inherited setters (part of
Issue 1015).
Allowed numbers and strings as names of getters/setters in object
initializer (Issue 820).
Added use_system_v8 option to gyp (off by default), to make it easier
for Linux distributions to ship with system-provided V8 library.
Exported external array data accessors (Issue 1016).
Added labelled thread names to help with debugging (on Linux).
git-svn-id: http://v8.googlecode.com/svn/trunk@6169 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/include/v8.h b/include/v8.h
index 2c0f350..883bfad 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -1651,9 +1651,9 @@
* the backing store is preserved while V8 has a reference.
*/
V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length);
- bool HasIndexedPropertiesInPixelData();
- uint8_t* GetIndexedPropertiesPixelData();
- int GetIndexedPropertiesPixelDataLength();
+ V8EXPORT bool HasIndexedPropertiesInPixelData();
+ V8EXPORT uint8_t* GetIndexedPropertiesPixelData();
+ V8EXPORT int GetIndexedPropertiesPixelDataLength();
/**
* Set the backing store of the indexed properties to be managed by the
@@ -1666,10 +1666,10 @@
void* data,
ExternalArrayType array_type,
int number_of_elements);
- bool HasIndexedPropertiesInExternalArrayData();
- void* GetIndexedPropertiesExternalArrayData();
- ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
- int GetIndexedPropertiesExternalArrayDataLength();
+ V8EXPORT bool HasIndexedPropertiesInExternalArrayData();
+ V8EXPORT void* GetIndexedPropertiesExternalArrayData();
+ V8EXPORT ExternalArrayType GetIndexedPropertiesExternalArrayDataType();
+ V8EXPORT int GetIndexedPropertiesExternalArrayDataLength();
V8EXPORT static Local<Object> New();
static inline Object* Cast(Value* obj);
@@ -3076,6 +3076,18 @@
* Returns a persistent handle to the newly allocated context. This
* persistent handle has to be disposed when the context is no
* 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(
ExtensionConfiguration* extensions = NULL,