diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/JavaScriptCore/runtime/SparseArrayValueMap.h | |
parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/JavaScriptCore/runtime/SparseArrayValueMap.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/SparseArrayValueMap.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <wtf/HashMap.h> +#include <wtf/Platform.h> namespace JSC { @@ -42,6 +43,7 @@ struct SparseArrayEntry : public WriteBarrier<Unknown> { 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<Unknown> { 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<uint64_t, SparseArrayEntry, WTF::IntHash<uint64_t>, WTF::UnsignedWithZeroKeyHashTraits<uint64_t>> 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); |