X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/runtime/SparseArrayValueMap.h diff --git a/runtime/SparseArrayValueMap.h b/runtime/SparseArrayValueMap.h index 4e5326f..ff36caa 100644 --- a/runtime/SparseArrayValueMap.h +++ b/runtime/SparseArrayValueMap.h @@ -51,9 +51,10 @@ struct SparseArrayEntry : public WriteBarrier { unsigned attributes; }; -class SparseArrayValueMap : public JSCell { +class SparseArrayValueMap final : public JSCell { public: typedef JSCell Base; + static const unsigned StructureFlags = Base::StructureFlags | StructureIsImmortal; private: typedef HashMap, WTF::UnsignedWithZeroKeyHashTraits> Map; @@ -69,8 +70,6 @@ private: void finishCreation(VM&); - static const unsigned StructureFlags = OverridesVisitChildren | StructureIsImmortal | JSCell::StructureFlags; - public: DECLARE_EXPORT_INFO; @@ -81,7 +80,6 @@ public: static SparseArrayValueMap* create(VM&); static const bool needsDestruction = true; - static const bool hasImmortalStructure = true; static void destroy(JSCell*); static Structure* createStructure(VM&, JSGlobalObject*, JSValue prototype);