diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-06-12 10:27:54 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-06-19 12:50:37 +0000 |
commit | 56f29d005c2c6eb028e3ed2d1ef8edd6d03d1403 (patch) | |
tree | e8a2503ba9f50c7797e16eeb96e444617b54ec18 /src/qml/compiler/qv4compiler_p.h | |
parent | 6f2bdb816dc816461cf3888eb732f71904b6a7ab (diff) |
Pass the JSUnitGenerator into the codegen
Allow registering all the required data to generate the
proper compilationunit already in the codegenerator.
Change-Id: I36345cc01927b3f8dc3ba6d91da175bd6abe124a
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r-- | src/qml/compiler/qv4compiler_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h index 49b8664513..7c4b48132f 100644 --- a/src/qml/compiler/qv4compiler_p.h +++ b/src/qml/compiler/qv4compiler_p.h @@ -103,10 +103,12 @@ struct Q_QML_PRIVATE_EXPORT JSUnitGenerator { uint registerIndexedSetterLookup(); int registerRegExp(IR::RegExp *regexp); + int registerRegExp(QQmlJS::AST::RegExpLiteral *regexp); int registerConstant(ReturnedValue v); int registerJSClass(int count, IR::ExprList *args); + int registerJSClass(int count, CompiledData::JSClassMember *members); enum GeneratorOption { GenerateWithStringTable, |