diff options
author | Simon Hausmann <[email protected]> | 2016-07-14 11:06:34 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2016-07-14 21:50:28 +0000 |
commit | 3190478663b68c275bb967618e98f4d9fe03f302 (patch) | |
tree | 63c64b7d05389005b19a9d045d74d1f2d466d151 /src/qml/compiler/qv4compiler_p.h | |
parent | a385ea0813e8d8ea834e1d2403509777cd52d3e9 (diff) |
Remove unused fields in CompiledData::Function
The table for referencing the inner functions is not needed. This also allows
making the function offsets table a local variable.
Change-Id: I3f1a1d6ab8c4f417edeafdc174e5b41d2d2b611b
Reviewed-by: Lars Knoll <[email protected]>
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r-- | src/qml/compiler/qv4compiler_p.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h index df10e9919b..ef50945981 100644 --- a/src/qml/compiler/qv4compiler_p.h +++ b/src/qml/compiler/qv4compiler_p.h @@ -114,13 +114,12 @@ struct Q_QML_PRIVATE_EXPORT JSUnitGenerator { QV4::CompiledData::Unit *generateUnit(GeneratorOption option = GenerateWithStringTable); // Returns bytes written - int writeFunction(char *f, IR::Function *irFunction); + int writeFunction(char *f, IR::Function *irFunction) const; StringTableGenerator stringTable; private: IR::Module *irModule; - QHash<IR::Function *, uint> functionOffsets; QList<CompiledData::Lookup> lookups; QVector<CompiledData::RegExp> regexps; QVector<ReturnedValue> constants; |