aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-01-09 12:01:06 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2015-01-12 11:04:13 +0100
commit4f28d07b8efbe9dfe12a08c8198d99225faa1331 (patch)
tree70f636f3c7f87014cd93111bf579445d3db052d3 /src/qml/jsruntime/qv4functionobject.cpp
parentb935023384120f8a9a38600847324b3810d7bee1 (diff)
Start cleaning up flags in Heap::Base
The goal is to get rid of the flags here and reduce the size of each GC'ed object with a pointer. Change-Id: I8c876810037756b85a646348cc5992a688588ea5 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.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp
index 081321e956..0cdf6b5d7c 100644
--- a/src/qml/jsruntime/qv4functionobject.cpp
+++ b/src/qml/jsruntime/qv4functionobject.cpp
@@ -144,7 +144,6 @@ void FunctionObject::init(String *n, bool createProto)
ScopedValue protectThis(s, this);
d()->needsActivation = true;
- d()->strictMode = false;
ensureMemberIndex(s.engine, Heap::FunctionObject::Index_Prototype);
if (createProto) {
@@ -452,7 +451,6 @@ Heap::SimpleScriptFunction::SimpleScriptFunction(QV4::ExecutionContext *scope, F
Q_ASSERT(function->code);
needsActivation = function->needsActivation();
- strictMode = function->isStrict();
// global function
if (!scope)