aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlboundsignal.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-03 14:08:55 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-03 14:39:29 +0200
commitbf51873870f94f56e8dccf25fea67b120f2db98f (patch)
tree36d7a9969cf801c2c0d5d10735db3c1095ce2aa2 /src/qml/qml/qqmlboundsignal.cpp
parentb7fd57098fb4668dc896e14a95d9b577e6eb7ee6 (diff)
Cleanup v8 Context handling
We don't need or use v8 Context objects, so it's sufficient to have one global context for now. Remove all code related to entering or leaving Context's. Change-Id: I4f7ddaa4907e59de5713368fa13bbc40e5830542 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlboundsignal.cpp')
-rw-r--r--src/qml/qml/qqmlboundsignal.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlboundsignal.cpp b/src/qml/qml/qqmlboundsignal.cpp
index ef869cd986..d0b7109891 100644
--- a/src/qml/qml/qqmlboundsignal.cpp
+++ b/src/qml/qml/qqmlboundsignal.cpp
@@ -141,7 +141,6 @@ QString QQmlBoundSignalExpression::expression() const
if (m_expressionFunctionValid) {
Q_ASSERT (context() && engine());
v8::HandleScope handle_scope;
- v8::Context::Scope context_scope(QQmlEnginePrivate::get(engine())->v8engine()->context());
return m_v8function->v4Value().toQString();
} else if (!m_expressionUtf8.isEmpty()) {
return QString::fromUtf8(m_expressionUtf8);
@@ -164,7 +163,6 @@ void QQmlBoundSignalExpression::evaluate(void **a)
ep->referenceScarceResources(); // "hold" scarce resources in memory during evaluation.
{
v8::HandleScope handle_scope;
- v8::Context::Scope context_scope(ep->v8engine()->context());
if (!m_expressionFunctionValid) {
//TODO: look at using the property cache here (as in the compiler)