[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>
Thu, 1 Mar 2012 11:04:01 +0000 (12:04 +0100)
commit0b0d1e10d7f9a3de61440e2a2ade1287e86e37f5
treeaabddc8087a1adc3c4d4a8d65c1f4a86e4814a5e
parent17742b26859673ff816eef2d8d6de847fc3060bd
[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: Ibc969432cd245ace40602e9e2f5824b2287e8107
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
src/3rdparty/v8/src/runtime.cc