diff options
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index a6a05c0483..a71491ac32 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -128,6 +128,12 @@ public: QQmlEngine *qmlEngine() const; QV8Engine *v8Engine; + enum JSObjects { + ObjectProto, + NJSObjects + }; + Value *jsObjects; + Value objectCtor; Value stringCtor; Value numberCtor; @@ -148,7 +154,7 @@ public: enum { NTypedArrayTypes = 9 }; // avoid header dependency Value typedArrayCtors[NTypedArrayTypes]; - Value objectPrototype; + Object *objectPrototype() { return reinterpret_cast<Object *>(jsObjects + ObjectProto); } Value arrayPrototype; Value stringPrototype; Value numberPrototype; |