aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4ssa.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-10-02 15:14:45 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-03 08:52:11 +0200
commita0a037c4651902f43c686dd92b64c98800c0a3a7 (patch)
tree1d8a79cf0d5410997331a846148d3e9abb48ae03 /src/qml/compiler/qv4ssa.cpp
parentb5198ce221c67c9772b3a205fd3823a9c516a9ec (diff)
Use a QVector instead of a QList
This makes the code go quite a bit faster (saves ~7-8% of the total amount of instructions executed when running crypto.js Change-Id: I6b3bd08eca98b45593262e2fc6e0ce5056257e76 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4ssa.cpp')
-rw-r--r--src/qml/compiler/qv4ssa.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4ssa.cpp b/src/qml/compiler/qv4ssa.cpp
index 04628743c7..6ad9a5731f 100644
--- a/src/qml/compiler/qv4ssa.cpp
+++ b/src/qml/compiler/qv4ssa.cpp
@@ -2630,7 +2630,7 @@ class LifeRanges {
QHash<BasicBlock *, LiveRegs> _liveIn;
QHash<Temp, LifeTimeInterval> _intervals;
- QList<LifeTimeInterval> _sortedRanges;
+ QVector<LifeTimeInterval> _sortedRanges;
public:
LifeRanges(Function *function, const QHash<BasicBlock *, BasicBlock *> &startEndLoops)
@@ -2659,7 +2659,7 @@ public:
std::sort(_sortedRanges.begin(), _sortedRanges.end(), LifeTimeInterval::lessThan);
}
- QList<LifeTimeInterval> ranges() const { return _sortedRanges; }
+ QVector<LifeTimeInterval> ranges() const { return _sortedRanges; }
void dump() const
{
@@ -2966,7 +2966,7 @@ void Optimizer::convertOutOfSSA() {
}
}
-QList<LifeTimeInterval> Optimizer::lifeRanges() const
+QVector<LifeTimeInterval> Optimizer::lifeRanges() const
{
Q_ASSERT(isInSSA());