Minor improvements to Context creation
authorLars Knoll <lars.knoll@digia.com>
Wed, 30 Jan 2013 16:11:09 +0000 (17:11 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Thu, 31 Jan 2013 06:21:03 +0000 (07:21 +0100)
commitbd30bc124488c6214364f7716b43b99d7553ecf8
treeb30e44f4eb8109e93db885743ea2389ccbb67e07
parentcab1cac7bb5d7f3f3cac6dd987e1c3fb137576fe
Minor improvements to Context creation

Avoid converting the this object for builtins, and
remove the GC blocker that's not needed anymore.
Move some parts of the code out to the caller
of initCallContext().

Change-Id: I8b11dd1604fb14940e4d4e9f403c2a8bfc837c4b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/v4/qmljs_environment.cpp
src/v4/qmljs_environment.h
src/v4/qv4functionobject.cpp
src/v4/qv4globalobject.cpp
tests/TestExpectations