diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-15 09:23:42 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-15 10:35:47 +0200 |
commit | 3ccd69b53688d6855d0136873876ed315d99b571 (patch) | |
tree | 6cf9a2308f671b080df72569e580b7af5cb72ae3 /src/qml/compiler/qv4compileddata_p.h | |
parent | a9346f9b43f0657dc97957e922e5764702c9c511 (diff) |
Store the file name per compilation unit, not per compiled function
Change-Id: Id699897b241a9ff6495689e5685092d311acb8c2
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h index 70e9d90f29..d02946efc9 100644 --- a/src/qml/compiler/qv4compileddata_p.h +++ b/src/qml/compiler/qv4compileddata_p.h @@ -83,6 +83,7 @@ struct Unit uint functionTableSize; uint offsetToFunctionTable; uint indexOfRootFunction; + quint32 sourceFileIndex; const String *stringAt(int idx) const { const uint *offsetTable = reinterpret_cast<const uint*>((reinterpret_cast<const char *>(this)) + offsetToStringTable); @@ -111,7 +112,6 @@ struct Function QV4::Value (*code)(ExecutionContext *, const uchar *); quint32 index; // in CompilationUnit's function table quint32 nameIndex; - quint32 sourceFileIndex; qint64 flags; quint32 nFormals; quint32 formalsOffset; @@ -246,6 +246,8 @@ struct CompilationUnit int refCount; Unit *data; + QString fileName() const { return data->stringAt(data->sourceFileIndex)->qString(); } + QV4::String **runtimeIdentifiers; // Array QV4::Function *linkToEngine(QV4::ExecutionEngine *engine); |