aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4typedarray.cpp
diff options
context:
space:
mode:
authorPasi Keranen <pasi.keranen@digia.com>2015-02-10 13:52:04 +0200
committerPasi Keränen <pasi.keranen@digia.com>2015-02-11 07:25:38 +0000
commit08bd120f012949199ee0c1d20d42a628af01289e (patch)
treeb5bdc008a43cf5b6287b3614840bdf55c6e71de0 /src/qml/jsruntime/qv4typedarray.cpp
parentf09bd9825b29612f98d884460504b07150bcb639 (diff)
Exposed TypedArray private APIs for Canvas3D use.
Exported QV4::TypedArray, QV4::ArrayBuffer and QV4::Heap::ArrayBuffer in to the private API set. Changed ArrayBuffer length in the constructor to size_t instead of int. Added accessor methods to TypedArray array type and byte length. Change-Id: I3f89b8e263012bc90cc665aed5744cbc66379204 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4typedarray.cpp')
-rw-r--r--src/qml/jsruntime/qv4typedarray.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp
index ba3ebdd60c..4ddf77188c 100644
--- a/src/qml/jsruntime/qv4typedarray.cpp
+++ b/src/qml/jsruntime/qv4typedarray.cpp
@@ -334,7 +334,8 @@ ReturnedValue TypedArrayCtor::call(Managed *that, CallData *callData)
Heap::TypedArray::TypedArray(ExecutionEngine *e, Type t)
: Heap::Object(e->emptyClass, e->typedArrayPrototype[t].asObject()),
- type(operations + t)
+ type(operations + t),
+ arrayType(t)
{
}