V8: Remove extra V8::Context allocated for expressing strong references
authorSimon Hausmann <simon.hausmann@nokia.com>
Tue, 13 Dec 2011 16:18:45 +0000 (17:18 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Dec 2011 12:42:29 +0000 (13:42 +0100)
commitd70cca804e88110eae32f92baff7cee957a6a531
treefa2dc18d907095c8bb953e249cfc2dd379b5bd9c
parent9ae39c98f43a29e3f68a1f34469c9ad2551f813c
V8: Remove extra V8::Context allocated for expressing strong references

Moved the Referencer code into QV8Engine and re-used the available v8
context there. That also makes things a bit cleaner in the sense that now
references from one object to another are guaranteed to be within the same
context. Previously some strong references would be across contexts that
do not actually share a security token.

Change-Id: I717b27a4d96323feb570023d4d84f2b2176d1a84
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/declarative/qml/qdeclarativevmemetaobject.cpp
src/declarative/qml/qdeclarativevmemetaobject_p.h
src/declarative/qml/v8/qv8engine.cpp
src/declarative/qml/v8/qv8engine_p.h
tests/auto/declarative/qdeclarativeecmascript/testtypes.h
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp