aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4dataview_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2014-11-06 17:40:48 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-11-10 17:15:00 +0100
commit4b850f3d1e79bb66a53f097ae7b7cc26db8cc2f8 (patch)
treea46d33ec16596e179aac7ece8bb929f68b03faab /src/qml/jsruntime/qv4dataview_p.h
parent3c1041cbfd70a03322ca0278e0db8ac0651c0792 (diff)
Move Data for typedarrays into Heap namespace
Change-Id: I1737423c22e0c68c9eaa14f6d4f5b1e48aea4a77 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4dataview_p.h')
-rw-r--r--src/qml/jsruntime/qv4dataview_p.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/qml/jsruntime/qv4dataview_p.h b/src/qml/jsruntime/qv4dataview_p.h
index 1e504aaf0f..e9ca05e082 100644
--- a/src/qml/jsruntime/qv4dataview_p.h
+++ b/src/qml/jsruntime/qv4dataview_p.h
@@ -42,13 +42,24 @@ namespace QV4 {
struct ArrayBuffer;
+namespace Heap {
+
+struct DataViewCtor : FunctionObject {
+ DataViewCtor(QV4::ExecutionContext *scope);
+};
+
+struct DataView : Object {
+ DataView(ExecutionEngine *e);
+ QV4::ArrayBuffer *buffer;
+ uint byteLength;
+ uint byteOffset;
+};
+
+}
+
struct DataViewCtor: FunctionObject
{
- struct Data : Heap::FunctionObject {
- Data(ExecutionContext *scope);
- };
-
- V4_OBJECT(FunctionObject)
+ V4_OBJECT2(DataViewCtor, FunctionObject)
static ReturnedValue construct(Managed *m, CallData *callData);
static ReturnedValue call(Managed *that, CallData *callData);
@@ -56,13 +67,7 @@ struct DataViewCtor: FunctionObject
struct DataView : Object
{
- struct Data : Heap::Object {
- Data(ExecutionEngine *e);
- ArrayBuffer *buffer;
- uint byteLength;
- uint byteOffset;
- };
- V4_OBJECT(Object)
+ V4_OBJECT2(DataView, Object)
static void markObjects(Heap::Base *that, ExecutionEngine *e);
};