[V8] Fix crash when querying for scopes
authorAurindam Jana <aurindam.jana@nokia.com>
Tue, 10 Jan 2012 18:33:44 +0000 (19:33 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 18 Jan 2012 22:59:49 +0000 (23:59 +0100)
commit12c55417534e345314cd687dce2370b35a80d362
tree4b93fbfb6d6a38f4cb76f712926b15f5ffb48c12
parente399c4a15d59fba66838fa1a17e306ab14470fcc
[V8] Fix crash when querying for scopes

For function code, the compilation info was incorrectly
marked as global if the shared_info had qml_mode set.
The ASSERT for the length of nested scopes failed when
querying for scopes and hence the crash. This fix sets the
qml_mode for function code correctly.

Fixes https://bugreports.qt.nokia.com/browse/QTBUG-23256

This patch should be squashed into
-- 2fe857938c3d1683df88133582bc3e7736264b10 [V8] Introduce a
QML compilation mode -- in the next v8 rebase as this code
only improves code in that patch.

Change-Id: I137b0e88dba81ff2ff46876faa883edb9dd0e4a9
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
src/3rdparty/v8/src/runtime.cc