V4 JIT: Hoist QVector allocation out of a loop.
authorRobin Burchell <robin.burchell@viroteck.net>
Mon, 22 Dec 2014 14:32:06 +0000 (15:32 +0100)
committerRobin Burchell <robin.burchell@viroteck.net>
Fri, 9 Jan 2015 11:41:21 +0000 (12:41 +0100)
commit32b6630a750850cd3d33df55b6f298fb2de23b3a
tree0fb166c1d040f64a7f13f1e42d8ddfb55bcf896c
parentdc5e5cbaa40db751628888d35125486c1249444b
V4 JIT: Hoist QVector allocation out of a loop.

Use erase() each loop iteration, but preserve the underlying allocation.

Change-Id: I673766f5567794215465daa597a4839a4900450b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jit/qv4regalloc.cpp