Bug 1239754 - Remove HashKeyRef now that all of its users are using stable hashing; r=jonco

--HG--
extra : rebase_source : 90d3e54b42fdc40650a505ad3383de85d3a149e0
This commit is contained in:
Terrence Cole 2016-01-14 15:00:20 -08:00
Родитель 7ac1a10831
Коммит 8898416495
1 изменённых файлов: 0 добавлений и 21 удалений

Просмотреть файл

@ -413,27 +413,6 @@ IsNullTaggedPointer(void* p)
return uintptr_t(p) <= LargestTaggedNullCellPointer;
}
// HashKeyRef represents a reference to a HashMap key. This should normally
// be used through the HashTableWriteBarrierPost function.
template <typename Map, typename Key>
class HashKeyRef : public BufferableRef
{
Map* map;
Key key;
public:
HashKeyRef(Map* m, const Key& k) : map(m), key(k) {}
void trace(JSTracer* trc) override {
Key prior = key;
typename Map::Ptr p = map->lookup(key);
if (!p)
return;
TraceManuallyBarrieredEdge(trc, &key, "HashKeyRef");
map->rekeyIfMoved(prior, key);
}
};
// Wrap a GC thing pointer into a new Value or jsid. The type system enforces
// that the thing pointer is a wrappable type.
template <typename S, typename T>