diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-14 15:58:54 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-15 09:08:53 +0200 |
commit | 83a975ae1ccc3eec52c859b8665319b7a096fc37 (patch) | |
tree | 8e89d018d848addc7111d46adbc1262982287af0 /src/qml/compiler/qv4compileddata_p.h | |
parent | 0d1e37e9f50b644c88578aee82859990e7378caf (diff) |
Get rid of flags in QV4::Function and use CompiledFunction::flags instead
Change-Id: Iffe72ff6dd0311d7548d1ea41164a400fd3a7600
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r-- | src/qml/compiler/qv4compileddata_p.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h index fdd5891850..b4dbee5164 100644 --- a/src/qml/compiler/qv4compileddata_p.h +++ b/src/qml/compiler/qv4compileddata_p.h @@ -100,9 +100,16 @@ struct Unit struct Function { + enum Flags { + HasDirectEval = 0x1, + UsesArgumentsObject = 0x2, + IsStrict = 0x4, + IsNamedExpression = 0x8 + }; + QV4::Value (*code)(ExecutionContext *, const uchar *); quint32 nameIndex; - qint64 flags; // strict, etc. + qint64 flags; quint32 nFormals; quint32 formalsOffset; quint32 nLocals; |