Speedup the V4 code generation.
authorRoberto Raggi <roberto.raggi@nokia.com>
Thu, 21 Jul 2011 12:47:26 +0000 (14:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 30 Aug 2011 11:18:28 +0000 (13:18 +0200)
commit039432362d9c0897f4fbe4334c1d9c99aaf98be8
tree43226de541b0bd6974493b25781a81079426f205
parentfcc416defbaeabcc77cdbf86b9a5e1942c66585d
Speedup the V4 code generation.

Skip discarded code and use QVarLengthArray instead of
QByteArray to store the bytecode.

Change-Id: I4c574e7a817595bc8942ed9a927e79339a2d7b40
Reviewed-on: http://codereview.qt.nokia.com/3760
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/declarative/qml/v4/qdeclarativev4compiler.cpp
src/declarative/qml/v4/qdeclarativev4instruction.cpp
src/declarative/qml/v4/qdeclarativev4instruction_p.h
src/declarative/qml/v4/qdeclarativev4irbuilder.cpp
src/declarative/qml/v4/qdeclarativev4irbuilder_p.h