From 12c55417534e345314cd687dce2370b35a80d362 Mon Sep 17 00:00:00 2001 From: Aurindam Jana Date: Tue, 10 Jan 2012 19:33:44 +0100 Subject: [PATCH] [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 Reviewed-by: Kent Hansen --- src/3rdparty/v8/src/runtime.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/3rdparty/v8/src/runtime.cc b/src/3rdparty/v8/src/runtime.cc index 8010169..939bc89 100644 --- a/src/3rdparty/v8/src/runtime.cc +++ b/src/3rdparty/v8/src/runtime.cc @@ -11262,7 +11262,7 @@ class ScopeIterator { ZoneScope zone_scope(isolate, DELETE_ON_EXIT); Handle