diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-01-05 14:48:10 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-04-12 13:58:33 +0000 |
commit | 5dcd32bf2e766357a709d3668e1649ee6ff82772 (patch) | |
tree | 60176e8654b24cb09b7eff1a93d3ab7f77eaaeb1 /src/qml/jsruntime/qv4internalclass_p.h | |
parent | c7bac1588e0e6a65187042afbde072afa6b8cd9b (diff) |
InternalClass: Unify handling of sealed and frozen classes
Unify the handling of sealed and frozen classes, and access them
through the transition vector.
Change-Id: I710cae04d717f42a8b8d4057dd1c60293043725b
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4internalclass_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4internalclass_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4internalclass_p.h b/src/qml/jsruntime/qv4internalclass_p.h index 168ed6c950..7533253873 100644 --- a/src/qml/jsruntime/qv4internalclass_p.h +++ b/src/qml/jsruntime/qv4internalclass_p.h @@ -248,6 +248,8 @@ struct InternalClassTransition VTableChange = 0x200, PrototypeChange = 0x201, ProtoClass = 0x202, + Sealed = 0x203, + Frozen = 0x204, RemoveMember = -1 }; @@ -273,11 +275,10 @@ struct InternalClass { std::vector<Transition> transitions; InternalClassTransition &lookupOrInsertTransition(const InternalClassTransition &t); - InternalClass *m_sealed; - InternalClass *m_frozen; - uint size; bool extensible; + bool isSealed; + bool isFrozen; bool isUsedAsProto = false; Q_REQUIRED_RESULT InternalClass *nonExtensible(); |