From 41386e9cb918eed93b3f13648cbef387e371e451 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 20 May 2015 09:56:07 +0000 Subject: webkitgtk-2.4.9 --- Source/JavaScriptCore/runtime/SparseArrayValueMap.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/JavaScriptCore/runtime/SparseArrayValueMap.h') diff --git a/Source/JavaScriptCore/runtime/SparseArrayValueMap.h b/Source/JavaScriptCore/runtime/SparseArrayValueMap.h index ff36caa71..113beb350 100644 --- a/Source/JavaScriptCore/runtime/SparseArrayValueMap.h +++ b/Source/JavaScriptCore/runtime/SparseArrayValueMap.h @@ -32,6 +32,7 @@ #include "PutDirectIndexMode.h" #include "WriteBarrier.h" #include +#include namespace JSC { @@ -51,10 +52,9 @@ struct SparseArrayEntry : public WriteBarrier { unsigned attributes; }; -class SparseArrayValueMap final : public JSCell { +class SparseArrayValueMap : public JSCell { public: typedef JSCell Base; - static const unsigned StructureFlags = Base::StructureFlags | StructureIsImmortal; private: typedef HashMap, WTF::UnsignedWithZeroKeyHashTraits> Map; @@ -70,6 +70,8 @@ private: void finishCreation(VM&); + static const unsigned StructureFlags = OverridesVisitChildren | JSCell::StructureFlags; + public: DECLARE_EXPORT_INFO; @@ -80,6 +82,7 @@ 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); -- cgit v1.2.1