aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-01-09 12:30:01 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2015-01-12 11:04:17 +0100
commit462496c2bbf9a35ce13762af8830cb2f87b0c27e (patch)
tree807d3169aeaae4088d7d60cd861ab587bcf3f6d8 /src/qml/jsruntime/qv4functionobject.cpp
parent5e8008dcbff056eecdca779153804bf3cd5acf85 (diff)
Get rid of the needsActivation flag in Heap::Base
Change-Id: Idcec374cb6d16aabf919c23d7236b76d9d047527 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r--src/qml/jsruntime/qv4functionobject.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index f70ddb04d4..200d9550b9 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -144,8 +144,6 @@ void FunctionObject::init(String *n, bool createProto)
Scope s(internalClass()->engine);
ScopedValue protectThis(s, this);
- d()->needsActivation = true;
-
ensureMemberIndex(s.engine, Heap::FunctionObject::Index_Prototype);
if (createProto) {
ScopedObject proto(s, scope()->engine->newObject(s.engine->protoClass, s.engine->objectPrototype.asObject()));
@@ -456,8 +454,6 @@ Heap::SimpleScriptFunction::SimpleScriptFunction(QV4::ExecutionContext *scope, F
Q_ASSERT(function);
Q_ASSERT(function->code);
- needsActivation = function->needsActivation();
-
// global function
if (!scope)
return;