aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compiler_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-08-15 15:54:36 +0200
committerLars Knoll <lars.knoll@digia.com>2013-08-16 10:14:13 +0200
commitb88626a3a59f7dcd01be6fe2a8236b14ca1176f5 (patch)
treef3a1f6db220f2d6a7d71f2ddc7b466e205658f40 /src/qml/compiler/qv4compiler_p.h
parent214680abec598bc01c4f90b3cecc60c7968c0c41 (diff)
Ported regular expressions over to be run-time generated data
Change-Id: I04e693d4923c97c3d869a5beb17011f6aad85f03 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h
index e7385a0174..753e4627e7 100644
--- a/src/qml/compiler/qv4compiler_p.h
+++ b/src/qml/compiler/qv4compiler_p.h
@@ -51,6 +51,7 @@ namespace QV4 {
namespace CompiledData {
struct Unit;
struct Lookup;
+struct RegExp;
}
namespace Compiler {
@@ -67,6 +68,8 @@ struct JSUnitGenerator {
uint registerSetterLookup(const QString &name);
uint registerGlobalGetterLookup(const QString &name);
+ int registerRegExp(QQmlJS::V4IR::RegExp *regexp);
+
QV4::CompiledData::Unit *generateUnit();
void writeFunction(char *f, int index, QQmlJS::V4IR::Function *irFunction);
@@ -75,6 +78,7 @@ struct JSUnitGenerator {
int stringDataSize;
QHash<QQmlJS::V4IR::Function *, uint> functionOffsets;
QList<CompiledData::Lookup> lookups;
+ QVector<CompiledData::RegExp> regexps;
};
}