From 493edae038338320fb29a3eb252f76c2ff24b74f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 4 Jul 2017 22:04:49 +0200 Subject: Get rid of the GlobalContext and WithContext classes They are just ExecutionContext's. Change-Id: Id543934740b0e54172e469935513847224b19e79 Reviewed-by: Erik Verbruggen --- src/qml/jsruntime/qv4engine.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/qml/jsruntime/qv4engine.cpp') diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp index d17af43ca4..f2f032df51 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp @@ -516,9 +516,10 @@ void ExecutionEngine::setProfiler(Profiling::Profiler *profiler) void ExecutionEngine::initRootContext() { Scope scope(this); - Scoped r(scope, memoryManager->allocManaged( - sizeof(GlobalContext::Data) + sizeof(CallData))); - r->d_unchecked()->init(this); + Scoped r(scope, memoryManager->allocManaged( + sizeof(ExecutionContext::Data) + sizeof(CallData))); + r->d_unchecked()->init(Heap::ExecutionContext::Type_GlobalContext); + r->d()->activation.set(this, globalObject->d()); r->d()->callData = reinterpret_cast(r->d() + 1); r->d()->callData->tag = quint32(Value::ValueTypeInternal::Integer); r->d()->callData->argc = 0; -- cgit v1.2.3