X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..HEAD:/runtime/StructureTransitionTable.h diff --git a/runtime/StructureTransitionTable.h b/runtime/StructureTransitionTable.h index 27c0a79..7fd3c77 100644 --- a/runtime/StructureTransitionTable.h +++ b/runtime/StructureTransitionTable.h @@ -29,8 +29,7 @@ #include "IndexingType.h" #include "WeakGCMap.h" #include -#include -#include +#include namespace JSC { @@ -94,11 +93,11 @@ class StructureTransitionTable { struct Hash { - typedef std::pair Key; + typedef std::pair Key; static unsigned hash(const Key& p) { - return PtrHash::hash(p.first) + p.second; + return PtrHash::hash(p.first) + p.second; } static bool equal(const Key& a, const Key& b) @@ -130,9 +129,9 @@ public: WeakSet::deallocate(impl); } - inline void add(VM&, Structure*); - inline bool contains(StringImpl* rep, unsigned attributes) const; - inline Structure* get(StringImpl* rep, unsigned attributes) const; + void add(VM&, Structure*); + bool contains(UniquedStringImpl*, unsigned attributes) const; + Structure* get(UniquedStringImpl*, unsigned attributes) const; private: bool isUsingSingleSlot() const