diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-16 13:21:31 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-08-16 16:52:18 +0200 |
commit | 944717a46c237e5a5b2d6e5ea2fd8389523638e4 (patch) | |
tree | 6e894837d1cd327bb578b00d7826e3de0cde816c /src/qml/compiler/qv4compiler_p.h | |
parent | 85e6b8e9e7e158b5cb4238c2dd5e28406bc913e2 (diff) |
Ported the compile-time class setup for object literals to be run-time based
Change-Id: I21225e4bf0f66914229cf64fa29ce870548c0e93
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r-- | src/qml/compiler/qv4compiler_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h index 1032369a53..c6dacfd2fe 100644 --- a/src/qml/compiler/qv4compiler_p.h +++ b/src/qml/compiler/qv4compiler_p.h @@ -52,6 +52,7 @@ namespace CompiledData { struct Unit; struct Lookup; struct RegExp; +struct JSClassMember; } namespace Compiler { @@ -72,6 +73,8 @@ struct JSUnitGenerator { void registerLineNumberMapping(QQmlJS::V4IR::Function *function, const QVector<uint> &mappings); + int registerJSClass(QQmlJS::V4IR::ExprList *args); + QV4::CompiledData::Unit *generateUnit(); // Returns bytes written int writeFunction(char *f, int index, QQmlJS::V4IR::Function *irFunction); @@ -83,6 +86,8 @@ struct JSUnitGenerator { QList<CompiledData::Lookup> lookups; QVector<CompiledData::RegExp> regexps; QHash<QQmlJS::V4IR::Function *, QVector<uint> > lineNumberMappingsPerFunction; + QList<QList<CompiledData::JSClassMember> > jsClasses; + int jsClassDataSize; }; } |