Optimized QDeclarativeScriptString constructor for QDeclarativeExpression.
authorMichael Brasser <michael.brasser@nokia.com>
Wed, 8 Jun 2011 03:18:35 +0000 (13:18 +1000)
committerMichael Brasser <michael.brasser@nokia.com>
Thu, 9 Jun 2011 00:10:09 +0000 (10:10 +1000)
commitccf706d0bb2d9f70f5a8c18e4aab8ee7e6369817
tree7019d21c843ad3c4e02fdff38d81615b56f56ee0
parentb8154d2b6b1a6c0145a099554c9166b4d35630fe
Optimized QDeclarativeScriptString constructor for QDeclarativeExpression.

When the compiler sees a script string, it will attempt to rewrite it
and store the id for the rewrite in the script string. We can then
create a QDeclarativeExpression using the id, which saves us a rewrite
at runtime.

Reviewed-by: Aaron Kennedy
14 files changed:
doc/src/declarative/whatsnew.qdoc
src/declarative/qml/qdeclarativecompiler.cpp
src/declarative/qml/qdeclarativeexpression.cpp
src/declarative/qml/qdeclarativeexpression.h
src/declarative/qml/qdeclarativeinstruction.cpp
src/declarative/qml/qdeclarativeinstruction_p.h
src/declarative/qml/qdeclarativescriptstring.cpp
src/declarative/qml/qdeclarativescriptstring.h
src/declarative/qml/qdeclarativescriptstring_p.h [new file with mode: 0644]
src/declarative/qml/qdeclarativevme.cpp
src/declarative/qml/qml.pri
tests/auto/declarative/qdeclarativeexpression/data/scriptString.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeexpression/qdeclarativeexpression.pro [new file with mode: 0644]
tests/auto/declarative/qdeclarativeexpression/tst_qdeclarativeexpression.cpp [new file with mode: 0644]