From 32761a6cee1d0dee366b885b7b9c777e67885688 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sun, 10 Apr 2016 09:28:39 +0000 Subject: webkitgtk-2.4.11 --- Source/JavaScriptCore/runtime/SparseArrayValueMap.h | 8 ++++++-- 1 file changed, 6 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 0754b53d9..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 { @@ -42,6 +43,7 @@ struct SparseArrayEntry : public WriteBarrier { SparseArrayEntry() : attributes(0) { } + JSValue get(ExecState*, JSObject*) const; void get(JSObject*, PropertySlot&) const; void get(PropertyDescriptor&) const; void put(ExecState*, JSValue thisValue, SparseArrayValueMap*, JSValue, bool shouldThrow); @@ -50,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; @@ -69,6 +70,8 @@ private: void finishCreation(VM&); + static const unsigned StructureFlags = OverridesVisitChildren | JSCell::StructureFlags; + public: DECLARE_EXPORT_INFO; @@ -79,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