Fix crashes with unmarked runtime strings
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 15 Aug 2013 12:11:19 +0000 (14:11 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 15 Aug 2013 13:28:46 +0000 (15:28 +0200)
commitc5c968933b7ce4540cf03ef6964846075cca5bb8
treeb50b3daae3c4c4cf07b5a9cd5d90bfdf528eca11
parent4036d2b17795da106aba8977d3009b7dd4b78e00
Fix crashes with unmarked runtime strings

Runtime strings are identifiers, but they still require to be marked. Keep
track of all compilation units in the engine (one per file) and mark its
run-time strings.

Change-Id: Ie70b00dfa373c4567279591de2f717e8103c288f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qv4compileddata.cpp
src/qml/compiler/qv4compileddata_p.h
src/qml/jsruntime/qv4engine.cpp
src/qml/jsruntime/qv4engine_p.h