[new compiler] Detect when writing to read-only value type property and bail out
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 3 Mar 2014 11:04:57 +0000 (12:04 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 3 Mar 2014 19:45:04 +0000 (20:45 +0100)
commit0f2c736de46f5f85fc75eb04445913fe3721cbde
tree401c659758f320509dc7d0eff44e959d9a694f4c
parentf7c8bdf9333bf2abebfd1408e2cf2d6f6408e876
[new compiler] Detect when writing to read-only value type property and bail out

Also annotate QML expressions in the IR with a proper function name, to
make debugging easier.

Change-Id: I5bacf446f40d35896f50bed0732f6f10408d9c97
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qqmlcodegenerator.cpp
src/qml/compiler/qqmltypecompiler.cpp