diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-01-09 12:01:06 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2015-01-12 11:04:13 +0100 |
commit | 4f28d07b8efbe9dfe12a08c8198d99225faa1331 (patch) | |
tree | 70f636f3c7f87014cd93111bf579445d3db052d3 /src/qml/jsruntime/qv4functionobject_p.h | |
parent | b935023384120f8a9a38600847324b3810d7bee1 (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_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index 5d2715fa2f..7406e9b0ff 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -142,7 +142,7 @@ struct Q_QML_EXPORT FunctionObject: Object { ReturnedValue protoProperty() { return memberData()->data[Heap::FunctionObject::Index_Prototype].asReturnedValue(); } bool needsActivation() const { return d()->needsActivation; } - bool strictMode() const { return d()->strictMode; } + bool strictMode() const { return d()->function ? d()->function->isStrict() : false; } bool bindingKeyFlag() const { return d()->bindingKeyFlag; } static void markObjects(Heap::Base *that, ExecutionEngine *e); |