X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..81345200c95645a1b0d2635520f96ad55dfde63f:/runtime/SparseArrayValueMap.h?ds=inline diff --git a/runtime/SparseArrayValueMap.h b/runtime/SparseArrayValueMap.h index 31b279f..4e5326f 100644 --- a/runtime/SparseArrayValueMap.h +++ b/runtime/SparseArrayValueMap.h @@ -32,7 +32,6 @@ #include "PutDirectIndexMode.h" #include "WriteBarrier.h" #include -#include namespace JSC { @@ -44,7 +43,7 @@ struct SparseArrayEntry : public WriteBarrier { SparseArrayEntry() : attributes(0) { } JSValue get(ExecState*, JSObject*) const; - void get(PropertySlot&) const; + void get(JSObject*, PropertySlot&) const; void get(PropertyDescriptor&) const; void put(ExecState*, JSValue thisValue, SparseArrayValueMap*, JSValue, bool shouldThrow); JSValue getNonSparseMode() const; @@ -57,7 +56,7 @@ public: typedef JSCell Base; private: - typedef HashMap, WTF::UnsignedWithZeroKeyHashTraits > Map; + typedef HashMap, WTF::UnsignedWithZeroKeyHashTraits> Map; enum Flags { Normal = 0, @@ -70,10 +69,10 @@ private: void finishCreation(VM&); - static const unsigned StructureFlags = OverridesVisitChildren | JSCell::StructureFlags; + static const unsigned StructureFlags = OverridesVisitChildren | StructureIsImmortal | JSCell::StructureFlags; public: - static JS_EXPORTDATA const ClassInfo s_info; + DECLARE_EXPORT_INFO; typedef Map::iterator iterator; typedef Map::const_iterator const_iterator;