static_cast<QV4::MemoryManager *>(memoryManager)->unprotect(m);
}
+quint64 qv8_get_value(const QV4::Value &v)
+{
+ return v.val;
+}
+
struct V8AccessorGetter: FunctionObject {
AccessorGetter getter;
Persistent<Value> data;
*(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
}
+Q_QML_EXPORT quint64 qv8_get_value(const QV4::Value &v);
+
/**
* An object reference managed by the v8 garbage collector.
*
handle->val = *reinterpret_cast<quint64 *>(other);
}
+ static void init(Handle<T> *handle, const QV4::Value &v)
+ {
+ handle->val = qv8_get_value(v);
+ }
+
static void ref(Handle<T> *)
{
}
HandleOperations<T>::ref(this);
}
+ Handle(const QV4::Value &v) {
+ HandleOperations<T>::init(this, v);
+ }
+
Handle(const Handle<T> &other)
: val(other.val)
{