diff options
author | Lars Knoll <[email protected]> | 2013-12-06 10:28:50 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-01-03 17:09:16 +0100 |
commit | 40fd9ff0ffcf72fb1f27d011dfe07fea764fcff2 (patch) | |
tree | a87d87fa83c4ba38bf807c18ad8415044be2513d /src/qml/jsruntime/qv4functionobject.cpp | |
parent | 658a15a075de2b5a77c1d1b4455eaf0ea0f81f47 (diff) |
Move Managed::type and some flags into the vtable
Move the type flag into the vtable to free up these
bits in the Managed class, and not have to set them
at object construction time.
As we often need to know whether a Managed object is a
Object, FunctionObject or String, add some bitflags to test
for these to the vtable.
Change-Id: I7d08ca044544debb307b55f124f34cb086ad9e84
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 6e5c137e0b..dc6f310b75 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -112,7 +112,6 @@ FunctionObject::FunctionObject(InternalClass *ic) { name = ic->engine->id_undefined; - type = Type_FunctionObject; needsActivation = false; strictMode = false; } @@ -130,7 +129,6 @@ void FunctionObject::init(const StringRef n, bool createProto) Scope s(internalClass->engine); ScopedValue protectThis(s, this); - type = Type_FunctionObject; needsActivation = true; strictMode = false; #ifndef QT_NO_DEBUG |