Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/nsRefPtrHashtable.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef nsRefPtrHashtable_h__
8
#define nsRefPtrHashtable_h__
9
10
#include "nsBaseHashtable.h"
11
#include "nsHashKeys.h"
12
#include "nsAutoPtr.h"
13
14
/**
15
 * templated hashtable class maps keys to reference pointers.
16
 * See nsBaseHashtable for complete declaration.
17
 * @param KeyClass a wrapper-class for the hashtable key, see nsHashKeys.h
18
 *   for a complete specification.
19
 * @param PtrType the reference-type being wrapped
20
 * @see nsDataHashtable, nsClassHashtable
21
 */
22
template<class KeyClass, class PtrType>
23
class nsRefPtrHashtable
24
  : public nsBaseHashtable<KeyClass, RefPtr<PtrType>, PtrType*>
25
{
26
public:
27
  typedef typename KeyClass::KeyType KeyType;
28
  typedef PtrType* UserDataType;
29
  typedef nsBaseHashtable<KeyClass, RefPtr<PtrType>, PtrType*> base_type;
30
31
16
  nsRefPtrHashtable() {}
nsRefPtrHashtable<nsPtrHashKey<PRThread>, nsThread>::nsRefPtrHashtable()
Line
Count
Source
31
3
  nsRefPtrHashtable() {}
nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, nsAtom>::nsRefPtrHashtable()
Line
Count
Source
31
3
  nsRefPtrHashtable() {}
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, nsHyphenator>::nsRefPtrHashtable()
nsRefPtrHashtable<nsGenericHashKey<nsHostKey>, nsHostRecord>::nsRefPtrHashtable()
Line
Count
Source
31
3
  nsRefPtrHashtable() {}
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, nsOfflineCacheDevice>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::net::CacheFileChunk>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::net::CacheEntry>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::net::HttpChannelParent>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::net::HttpBackgroundChannelParent>::nsRefPtrHashtable()
nsRefPtrHashtable<nsCStringHashKey, mozilla::net::nsHttpConnectionMgr::nsConnectionEntry>::nsRefPtrHashtable()
Line
Count
Source
31
1
  nsRefPtrHashtable() {}
nsRefPtrHashtable<nsCStringHashKey, nsJAR>::nsRefPtrHashtable()
Line
Count
Source
31
3
  nsRefPtrHashtable() {}
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::MozPromise<bool, nsresult, false>::Private>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::DrawTarget>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::Path>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::SourceSurface>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::FilterNode>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::GradientStops>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::ScaledFont>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::UnscaledFont>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gfx::NativeFontResource>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::layers::WebRenderUserDataKey>, mozilla::layers::WebRenderUserData>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::layers::Layer>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gfx::SourceSurfaceSharedDataWrapper>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<mozilla::layers::TextureSource>, mozilla::layers::MaskOperation>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::gfx::VRDisplayHost>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::gfx::VRControllerHost>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Promise>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::gfx::impl::VRControllerPuppet>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::image::Image>, mozilla::image::ImageSurfaceCache>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::image::SurfaceKey>, mozilla::image::CachedSurface>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::image::ImageCacheKey>, imgCacheEntry>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Gamepad>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::Promise>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, nsExternalResourceMap::PendingLoad>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, imgIRequest>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::OverOutElementsWrapper>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, nsContentList>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::GetUserMediaWindowListener>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::GetUserMediaTask>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::MediaKeySession>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::DetailedPromise>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::MediaKeySession>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gmp::GMPContentParent>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::gmp::GMPStorage>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::gmp::GMPRecordImpl>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::MediaEngineSource>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::SpeechSynthesisVoice>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::VoiceData>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::SpeechDispatcherCallback>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::SpeechDispatcherVoice>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::SessionStorageCache>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<_NPAsyncSurface>, mozilla::plugins::PluginInstanceChild::DirectBitmap>::nsRefPtrHashtable()
Unexecuted instantiation: ActorsParent.cpp:nsRefPtrHashtable<nsUint64HashKey, mozilla::dom::indexedDB::(anonymous namespace)::FullObjectStoreMetadata>::nsRefPtrHashtable()
Unexecuted instantiation: ActorsParent.cpp:nsRefPtrHashtable<nsUint64HashKey, mozilla::dom::indexedDB::(anonymous namespace)::FullIndexMetadata>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::indexedDB::FileInfo>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::GetFilesHelperChild>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::FileCreatorHelper>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::GetFilesHelper>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, nsXBLDocumentInfo>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, nsXULPrototypeDocument>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, mozilla::StyleSheet>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::WorkletFetchHandler>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, mozilla::MozPromise<bool, nsresult, false>::Private>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, mozilla::dom::ModuleScript>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::ServiceWorkerRegistrationInfo>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::ServiceWorkerJobQueue>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, nsIPresentationRespondingListener>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::PresentationSessionInfo>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::PresentationContentSessionInfo>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, nsIPresentationSessionListener>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, nsIWidget>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<_GdkEventSequence>, mozilla::dom::Touch>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsIDocument>, imgRequestProxy>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsFloatHashKey, gfxPattern>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::ComputedStyle>::nsRefPtrHashtable()
nsRefPtrHashtable<nsUint64HashKey, mozilla::dom::BrowsingContext>::nsRefPtrHashtable()
Line
Count
Source
31
3
  nsRefPtrHashtable() {}
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::a11y::AccTreeMutationEvent>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::a11y::DocAccessibleParent const>, mozilla::a11y::xpcAccessibleDocument>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::DataStorage>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsAtom const>, mozilla::extensions::WebExtensionPolicy>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::extensions::WebExtensionPolicy>::nsRefPtrHashtable()
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::extensions::DocumentObserver const>, mozilla::extensions::DocumentObserver>::nsRefPtrHashtable()
32
  explicit nsRefPtrHashtable(uint32_t aInitLength)
33
    : nsBaseHashtable<KeyClass, RefPtr<PtrType>, PtrType*>(aInitLength)
34
0
  {
35
0
  }
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, gfxFontFamily>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, gfxFontEntry>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, gfxUserFontFamily>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::ChromeMessageBroadcaster>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsIContent>, mozilla::dom::BoxObject>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::HTMLInputElement>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::AccessibleNode>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsIDocument const>, mozilla::a11y::DocAccessible>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::a11y::DocAccessible const>, mozilla::a11y::xpcAccessibleDocument>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::Accessible>::nsRefPtrHashtable(unsigned int)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::XULTreeGridCellAccessible>::nsRefPtrHashtable(unsigned int)
36
37
  /**
38
   * @copydoc nsBaseHashtable::Get
39
   * @param aData This is an XPCOM getter, so aData is already_addrefed.
40
   *   If the key doesn't exist, aData will be set to nullptr.
41
   */
42
  bool Get(KeyType aKey, UserDataType* aData) const;
43
44
  /**
45
   * @copydoc nsBaseHashtable::Get
46
   */
47
  already_AddRefed<PtrType> Get(KeyType aKey) const;
48
49
  /**
50
   * Gets a weak reference to the hashtable entry.
51
   * @param aFound If not nullptr, will be set to true if the entry is found,
52
   *               to false otherwise.
53
   * @return The entry, or nullptr if not found. Do not release this pointer!
54
   */
55
  PtrType* GetWeak(KeyType aKey, bool* aFound = nullptr) const;
56
57
  // Overload Put, rather than overriding it.
58
  using base_type::Put;
59
60
  void Put(KeyType aKey, already_AddRefed<PtrType> aData);
61
62
  MOZ_MUST_USE bool Put(KeyType aKey, already_AddRefed<PtrType> aData,
63
                        const mozilla::fallible_t&);
64
65
  /**
66
   * Remove the entry associated with aKey (if any), optionally _moving_ its
67
   * current value into *aData, thereby avoiding calls to AddRef and Release.
68
   * Return true if found.
69
   * @param aKey the key to remove from the hashtable
70
   * @param aData where to move the value (if non-null).  If an entry is not
71
   *              found it will be set to nullptr.
72
   * @return true if an entry for aKey was found (and removed)
73
   */
74
  inline bool Remove(KeyType aKey, UserDataType* aData = nullptr);
75
};
76
77
template<typename K, typename T>
78
inline void
79
ImplCycleCollectionUnlink(nsRefPtrHashtable<K, T>& aField)
80
0
{
81
0
  aField.Clear();
82
0
}
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsUint32HashKey, mozilla::dom::Gamepad>(nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Gamepad>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsStringHashKey, mozilla::dom::ChromeMessageBroadcaster>(nsRefPtrHashtable<nsStringHashKey, mozilla::dom::ChromeMessageBroadcaster>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>(nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsRefPtrHashKey<nsAtom>, mozilla::dom::Promise>(nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::Promise>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>(nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsURIHashKey, imgIRequest>(nsRefPtrHashtable<nsURIHashKey, imgIRequest>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsUint32HashKey, mozilla::OverOutElementsWrapper>(nsRefPtrHashtable<nsUint32HashKey, mozilla::OverOutElementsWrapper>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsStringHashKey, nsContentList>(nsRefPtrHashtable<nsStringHashKey, nsContentList>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsStringHashKey, mozilla::dom::MediaKeySession>(nsRefPtrHashtable<nsStringHashKey, mozilla::dom::MediaKeySession>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsUint32HashKey, mozilla::dom::DetailedPromise>(nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::DetailedPromise>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsUint32HashKey, mozilla::dom::MediaKeySession>(nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::MediaKeySession>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsURIHashKey, mozilla::dom::ModuleScript>(nsRefPtrHashtable<nsURIHashKey, mozilla::dom::ModuleScript>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsUint32HashKey, mozilla::dom::AccessibleNode>(nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::AccessibleNode>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsPtrHashKey<void const>, mozilla::a11y::Accessible>(nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::Accessible>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsPtrHashKey<void const>, mozilla::a11y::XULTreeGridCellAccessible>(nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::XULTreeGridCellAccessible>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsPtrHashKey<nsAtom const>, mozilla::extensions::WebExtensionPolicy>(nsRefPtrHashtable<nsPtrHashKey<nsAtom const>, mozilla::extensions::WebExtensionPolicy>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsCStringHashKey, mozilla::extensions::WebExtensionPolicy>(nsRefPtrHashtable<nsCStringHashKey, mozilla::extensions::WebExtensionPolicy>&)
Unexecuted instantiation: void ImplCycleCollectionUnlink<nsPtrHashKey<mozilla::extensions::DocumentObserver const>, mozilla::extensions::DocumentObserver>(nsRefPtrHashtable<nsPtrHashKey<mozilla::extensions::DocumentObserver const>, mozilla::extensions::DocumentObserver>&)
83
84
template<typename K, typename T>
85
inline void
86
ImplCycleCollectionTraverse(nsCycleCollectionTraversalCallback& aCallback,
87
                            nsRefPtrHashtable<K, T>& aField,
88
                            const char* aName,
89
                            uint32_t aFlags = 0)
90
0
{
91
0
  for (auto iter = aField.ConstIter(); !iter.Done(); iter.Next()) {
92
0
    CycleCollectionNoteChild(aCallback, iter.UserData(), aName, aFlags);
93
0
  }
94
0
}
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsUint32HashKey, mozilla::dom::Gamepad>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Gamepad>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsStringHashKey, mozilla::dom::ChromeMessageBroadcaster>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsStringHashKey, mozilla::dom::ChromeMessageBroadcaster>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsRefPtrHashKey<nsAtom>, mozilla::dom::Promise>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::Promise>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsURIHashKey, imgIRequest>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsURIHashKey, imgIRequest>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsUint32HashKey, mozilla::OverOutElementsWrapper>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsUint32HashKey, mozilla::OverOutElementsWrapper>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsStringHashKey, nsContentList>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsStringHashKey, nsContentList>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsStringHashKey, mozilla::dom::HTMLInputElement>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsStringHashKey, mozilla::dom::HTMLInputElement>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsStringHashKey, mozilla::dom::MediaKeySession>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsStringHashKey, mozilla::dom::MediaKeySession>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsUint32HashKey, mozilla::dom::DetailedPromise>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::DetailedPromise>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsUint32HashKey, mozilla::dom::MediaKeySession>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::MediaKeySession>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsURIHashKey, mozilla::dom::ModuleScript>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsURIHashKey, mozilla::dom::ModuleScript>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsUint32HashKey, mozilla::dom::AccessibleNode>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::AccessibleNode>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsPtrHashKey<void const>, mozilla::a11y::Accessible>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::Accessible>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsPtrHashKey<void const>, mozilla::a11y::XULTreeGridCellAccessible>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::XULTreeGridCellAccessible>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsPtrHashKey<nsAtom const>, mozilla::extensions::WebExtensionPolicy>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsPtrHashKey<nsAtom const>, mozilla::extensions::WebExtensionPolicy>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsCStringHashKey, mozilla::extensions::WebExtensionPolicy>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsCStringHashKey, mozilla::extensions::WebExtensionPolicy>&, char const*, unsigned int)
Unexecuted instantiation: void ImplCycleCollectionTraverse<nsPtrHashKey<mozilla::extensions::DocumentObserver const>, mozilla::extensions::DocumentObserver>(nsCycleCollectionTraversalCallback&, nsRefPtrHashtable<nsPtrHashKey<mozilla::extensions::DocumentObserver const>, mozilla::extensions::DocumentObserver>&, char const*, unsigned int)
95
96
//
97
// nsRefPtrHashtable definitions
98
//
99
100
template<class KeyClass, class PtrType>
101
bool
102
nsRefPtrHashtable<KeyClass, PtrType>::Get(KeyType aKey,
103
                                          UserDataType* aRefPtr) const
104
5
{
105
5
  typename base_type::EntryType* ent = this->GetEntry(aKey);
106
5
107
5
  if (ent) {
108
4
    if (aRefPtr) {
109
4
      *aRefPtr = ent->mData;
110
4
111
4
      NS_IF_ADDREF(*aRefPtr);
112
4
    }
113
4
114
4
    return true;
115
4
  }
116
1
117
1
  // if the key doesn't exist, set *aRefPtr to null
118
1
  // so that it is a valid XPCOM getter
119
1
  if (aRefPtr) {
120
1
    *aRefPtr = nullptr;
121
1
  }
122
1
123
1
  return false;
124
1
}
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<PRThread>, nsThread>::Get(PRThread*, nsThread**) const
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, nsHyphenator>::Get(nsAtom*, nsHyphenator**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, nsOfflineCacheDevice>::Get(nsTSubstring<char16_t> const&, nsOfflineCacheDevice**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::net::CacheFileChunk>::Get(unsigned int const&, mozilla::net::CacheFileChunk**) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::net::CacheEntry>::Get(nsTSubstring<char> const&, mozilla::net::CacheEntry**) const
nsRefPtrHashtable<nsCStringHashKey, nsJAR>::Get(nsTSubstring<char> const&, nsJAR**) const
Line
Count
Source
104
5
{
105
5
  typename base_type::EntryType* ent = this->GetEntry(aKey);
106
5
107
5
  if (ent) {
108
4
    if (aRefPtr) {
109
4
      *aRefPtr = ent->mData;
110
4
111
4
      NS_IF_ADDREF(*aRefPtr);
112
4
    }
113
4
114
4
    return true;
115
4
  }
116
1
117
1
  // if the key doesn't exist, set *aRefPtr to null
118
1
  // so that it is a valid XPCOM getter
119
1
  if (aRefPtr) {
120
1
    *aRefPtr = nullptr;
121
1
  }
122
1
123
1
  return false;
124
1
}
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::MozPromise<bool, nsresult, false>::Private>::Get(nsTSubstring<char> const&, mozilla::MozPromise<bool, nsresult, false>::Private**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gfx::SourceSurfaceSharedDataWrapper>::Get(unsigned long const&, mozilla::gfx::SourceSurfaceSharedDataWrapper**) const
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<mozilla::layers::TextureSource>, mozilla::layers::MaskOperation>::Get(mozilla::layers::TextureSource*, mozilla::layers::MaskOperation**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::gfx::VRDisplayHost>::Get(unsigned int const&, mozilla::gfx::VRDisplayHost**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::gfx::VRControllerHost>::Get(unsigned int const&, mozilla::gfx::VRControllerHost**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Promise>::Get(unsigned int const&, mozilla::dom::Promise**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::gfx::impl::VRControllerPuppet>::Get(unsigned int const&, mozilla::gfx::impl::VRControllerPuppet**) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::image::Image>, mozilla::image::ImageSurfaceCache>::Get(mozilla::image::Image*, mozilla::image::ImageSurfaceCache**) const
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::image::SurfaceKey>, mozilla::image::CachedSurface>::Get(mozilla::image::SurfaceKey const&, mozilla::image::CachedSurface**) const
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::image::ImageCacheKey>, imgCacheEntry>::Get(mozilla::image::ImageCacheKey const&, imgCacheEntry**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Gamepad>::Get(unsigned int const&, mozilla::dom::Gamepad**) const
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>::Get(nsAtom*, mozilla::dom::CustomElementCreationCallback**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::HTMLInputElement>::Get(nsTSubstring<char16_t> const&, mozilla::dom::HTMLInputElement**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::GetUserMediaTask>::Get(nsTSubstring<char16_t> const&, mozilla::GetUserMediaTask**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::MediaKeySession>::Get(nsTSubstring<char16_t> const&, mozilla::dom::MediaKeySession**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::MediaKeySession>::Get(unsigned int const&, mozilla::dom::MediaKeySession**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gmp::GMPContentParent>::Get(unsigned long const&, mozilla::gmp::GMPContentParent**) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::gmp::GMPStorage>::Get(nsTSubstring<char> const&, mozilla::gmp::GMPStorage**) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::gmp::GMPRecordImpl>::Get(nsTSubstring<char> const&, mozilla::gmp::GMPRecordImpl**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::MediaEngineSource>::Get(nsTSubstring<char16_t> const&, mozilla::MediaEngineSource**) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::SessionStorageCache>::Get(nsTSubstring<char> const&, mozilla::dom::SessionStorageCache**) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<_NPAsyncSurface>, mozilla::plugins::PluginInstanceChild::DirectBitmap>::Get(_NPAsyncSurface*, mozilla::plugins::PluginInstanceChild::DirectBitmap**) const
Unexecuted instantiation: ActorsParent.cpp:nsRefPtrHashtable<nsUint64HashKey, mozilla::dom::indexedDB::(anonymous namespace)::FullObjectStoreMetadata>::Get(unsigned long const&, mozilla::dom::indexedDB::(anonymous namespace)::FullObjectStoreMetadata**) const
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::indexedDB::FileInfo>::Get(nsID const&, mozilla::dom::indexedDB::FileInfo**) const
Unexecuted instantiation: ActorsParent.cpp:nsRefPtrHashtable<nsUint64HashKey, mozilla::dom::indexedDB::(anonymous namespace)::FullIndexMetadata>::Get(unsigned long const&, mozilla::dom::indexedDB::(anonymous namespace)::FullIndexMetadata**) const
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, mozilla::dom::ModuleScript>::Get(nsIURI*, mozilla::dom::ModuleScript**) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::ServiceWorkerRegistrationInfo>::Get(nsTSubstring<char> const&, mozilla::dom::ServiceWorkerRegistrationInfo**) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::ServiceWorkerJobQueue>::Get(nsTSubstring<char> const&, mozilla::dom::ServiceWorkerJobQueue**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::PresentationSessionInfo>::Get(nsTSubstring<char16_t> const&, mozilla::dom::PresentationSessionInfo**) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, nsIPresentationRespondingListener>::Get(unsigned long const&, nsIPresentationRespondingListener**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::PresentationContentSessionInfo>::Get(nsTSubstring<char16_t> const&, mozilla::dom::PresentationContentSessionInfo**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, nsIPresentationSessionListener>::Get(nsTSubstring<char16_t> const&, nsIPresentationSessionListener**) const
Unexecuted instantiation: nsRefPtrHashtable<nsFloatHashKey, gfxPattern>::Get(float const&, gfxPattern**) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::DataStorage>::Get(nsTSubstring<char16_t> const&, mozilla::DataStorage**) const
125
126
template<class KeyClass, class PtrType>
127
already_AddRefed<PtrType>
128
nsRefPtrHashtable<KeyClass, PtrType>::Get(KeyType aKey) const
129
0
{
130
0
  typename base_type::EntryType* ent = this->GetEntry(aKey);
131
0
  if (!ent) {
132
0
    return nullptr;
133
0
  }
134
0
135
0
  RefPtr<PtrType> copy = ent->mData;
136
0
  return copy.forget();
137
0
}
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, nsAtom>::Get(nsAtom*) const
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<nsHostKey>, nsHostRecord>::Get(nsHostKey const&) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::AccessibleNode>::Get(unsigned int const&) const
138
139
template<class KeyClass, class PtrType>
140
PtrType*
141
nsRefPtrHashtable<KeyClass, PtrType>::GetWeak(KeyType aKey, bool* aFound) const
142
0
{
143
0
  typename base_type::EntryType* ent = this->GetEntry(aKey);
144
0
145
0
  if (ent) {
146
0
    if (aFound) {
147
0
      *aFound = true;
148
0
    }
149
0
150
0
    return ent->mData;
151
0
  }
152
0
153
0
  // Key does not exist, return nullptr and set aFound to false
154
0
  if (aFound) {
155
0
    *aFound = false;
156
0
  }
157
0
158
0
  return nullptr;
159
0
}
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>::GetWeak(nsAtom*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>::GetWeak(nsAtom*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<PRThread>, nsThread>::GetWeak(PRThread*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, nsAtom>::GetWeak(nsAtom*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::net::CacheFileChunk>::GetWeak(unsigned int const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::net::CacheEntry>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::net::nsHttpConnectionMgr::nsConnectionEntry>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsAtom const>, mozilla::extensions::WebExtensionPolicy>::GetWeak(nsAtom const*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::extensions::WebExtensionPolicy>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::GetUserMediaWindowListener>::GetWeak(unsigned long const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::DrawTarget>::GetWeak(void*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::Path>::GetWeak(void*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::SourceSurface>::GetWeak(void*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::FilterNode>::GetWeak(void*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::GradientStops>::GetWeak(void*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::ScaledFont>::GetWeak(void*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::UnscaledFont>::GetWeak(void*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gfx::NativeFontResource>::GetWeak(unsigned long const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::layers::WebRenderUserDataKey>, mozilla::layers::WebRenderUserData>::GetWeak(mozilla::layers::WebRenderUserDataKey const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>::GetWeak(unsigned int const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::layers::Layer>::GetWeak(unsigned long const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, gfxFontFamily>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, gfxFontEntry>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, gfxUserFontFamily>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::a11y::DocAccessible const>, mozilla::a11y::xpcAccessibleDocument>::GetWeak(mozilla::a11y::DocAccessible const*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::a11y::DocAccessibleParent const>, mozilla::a11y::xpcAccessibleDocument>::GetWeak(mozilla::a11y::DocAccessibleParent const*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::HTMLInputElement>::GetWeak(nsTSubstring<char16_t> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::SpeechSynthesisVoice>::GetWeak(nsTSubstring<char16_t> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::VoiceData>::GetWeak(nsTSubstring<char16_t> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::SpeechDispatcherVoice>::GetWeak(nsTSubstring<char16_t> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::SpeechDispatcherCallback>::GetWeak(unsigned int const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::GetFilesHelperChild>::GetWeak(nsID const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::FileCreatorHelper>::GetWeak(nsID const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::Accessible>::GetWeak(void const*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, nsXBLDocumentInfo>::GetWeak(nsIURI*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, nsXULPrototypeDocument>::GetWeak(nsIURI*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, mozilla::StyleSheet>::GetWeak(nsIURI*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::WorkletFetchHandler>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, mozilla::dom::ModuleScript>::GetWeak(nsIURI*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::ServiceWorkerRegistrationInfo>::GetWeak(nsTSubstring<char> const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, nsIWidget>::GetWeak(void const*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsIDocument>, imgRequestProxy>::GetWeak(nsIDocument*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::ComputedStyle>::GetWeak(unsigned int const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::a11y::AccTreeMutationEvent>::GetWeak(unsigned long const&, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::XULTreeGridCellAccessible>::GetWeak(void const*, bool*) const
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::extensions::DocumentObserver const>, mozilla::extensions::DocumentObserver>::GetWeak(mozilla::extensions::DocumentObserver const*, bool*) const
160
161
template<class KeyClass, class PtrType>
162
void
163
nsRefPtrHashtable<KeyClass, PtrType>::Put(KeyType aKey,
164
                                          already_AddRefed<PtrType> aData)
165
0
{
166
0
  if (!Put(aKey, std::move(aData), mozilla::fallible)) {
167
0
    NS_ABORT_OOM(this->mTable.EntrySize() * this->mTable.EntryCount());
168
0
  }
169
0
}
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::MozPromise<bool, nsresult, false>::Private>::Put(nsTSubstring<char> const&, already_AddRefed<mozilla::MozPromise<bool, nsresult, false>::Private>)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gfx::SourceSurfaceSharedDataWrapper>::Put(unsigned long const&, already_AddRefed<mozilla::gfx::SourceSurfaceSharedDataWrapper>)
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>::Put(nsAtom*, already_AddRefed<mozilla::dom::CustomElementDefinition>)
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>::Put(nsAtom*, already_AddRefed<mozilla::dom::CustomElementCreationCallback>)
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, imgIRequest>::Put(nsIURI*, already_AddRefed<imgIRequest>)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::GetUserMediaTask>::Put(nsTSubstring<char16_t> const&, already_AddRefed<mozilla::GetUserMediaTask>)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<_GdkEventSequence>, mozilla::dom::Touch>::Put(_GdkEventSequence*, already_AddRefed<mozilla::dom::Touch>)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::ComputedStyle>::Put(unsigned int const&, already_AddRefed<mozilla::ComputedStyle>)
170
171
template<class KeyClass, class PtrType>
172
bool
173
nsRefPtrHashtable<KeyClass, PtrType>::Put(KeyType aKey,
174
                                          already_AddRefed<PtrType> aData,
175
                                          const mozilla::fallible_t&)
176
0
{
177
0
  typename base_type::EntryType* ent = this->PutEntry(aKey, mozilla::fallible);
178
0
179
0
  if (!ent) {
180
0
    return false;
181
0
  }
182
0
183
0
  ent->mData = aData;
184
0
185
0
  return true;
186
0
}
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::MozPromise<bool, nsresult, false>::Private>::Put(nsTSubstring<char> const&, already_AddRefed<mozilla::MozPromise<bool, nsresult, false>::Private>, std::nothrow_t const&)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gfx::SourceSurfaceSharedDataWrapper>::Put(unsigned long const&, already_AddRefed<mozilla::gfx::SourceSurfaceSharedDataWrapper>, std::nothrow_t const&)
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementDefinition>::Put(nsAtom*, already_AddRefed<mozilla::dom::CustomElementDefinition>, std::nothrow_t const&)
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>::Put(nsAtom*, already_AddRefed<mozilla::dom::CustomElementCreationCallback>, std::nothrow_t const&)
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, imgIRequest>::Put(nsIURI*, already_AddRefed<imgIRequest>, std::nothrow_t const&)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::GetUserMediaTask>::Put(nsTSubstring<char16_t> const&, already_AddRefed<mozilla::GetUserMediaTask>, std::nothrow_t const&)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<_GdkEventSequence>, mozilla::dom::Touch>::Put(_GdkEventSequence*, already_AddRefed<mozilla::dom::Touch>, std::nothrow_t const&)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::ComputedStyle>::Put(unsigned int const&, already_AddRefed<mozilla::ComputedStyle>, std::nothrow_t const&)
187
188
template<class KeyClass, class PtrType>
189
bool
190
nsRefPtrHashtable<KeyClass, PtrType>::Remove(KeyType aKey,
191
                                             UserDataType* aRefPtr)
192
0
{
193
0
  typename base_type::EntryType* ent = this->GetEntry(aKey);
194
0
195
0
  if (ent) {
196
0
    if (aRefPtr) {
197
0
      ent->mData.forget(aRefPtr);
198
0
    }
199
0
    this->RemoveEntry(ent);
200
0
    return true;
201
0
  }
202
0
203
0
  if (aRefPtr) {
204
0
    *aRefPtr = nullptr;
205
0
  }
206
0
  return false;
207
0
}
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<PRThread>, nsThread>::Remove(PRThread*, nsThread**)
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<nsHostKey>, nsHostRecord>::Remove(nsHostKey const&, nsHostRecord**)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, nsOfflineCacheDevice>::Remove(nsTSubstring<char16_t> const&, nsOfflineCacheDevice**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::net::CacheFileChunk>::Remove(unsigned int const&, mozilla::net::CacheFileChunk**)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::net::CacheEntry>::Remove(nsTSubstring<char> const&, mozilla::net::CacheEntry**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::net::HttpChannelParent>::Remove(unsigned long const&, mozilla::net::HttpChannelParent**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::net::HttpBackgroundChannelParent>::Remove(unsigned long const&, mozilla::net::HttpBackgroundChannelParent**)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, nsJAR>::Remove(nsTSubstring<char> const&, nsJAR**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::DrawTarget>::Remove(void*, mozilla::gfx::DrawTarget**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::Path>::Remove(void*, mozilla::gfx::Path**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::SourceSurface>::Remove(void*, mozilla::gfx::SourceSurface**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::FilterNode>::Remove(void*, mozilla::gfx::FilterNode**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::GradientStops>::Remove(void*, mozilla::gfx::GradientStops**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::ScaledFont>::Remove(void*, mozilla::gfx::ScaledFont**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void>, mozilla::gfx::UnscaledFont>::Remove(void*, mozilla::gfx::UnscaledFont**)
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::layers::WebRenderUserDataKey>, mozilla::layers::WebRenderUserData>::Remove(mozilla::layers::WebRenderUserDataKey const&, mozilla::layers::WebRenderUserData**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::layers::Layer>::Remove(unsigned long const&, mozilla::layers::Layer**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::gfx::SourceSurfaceSharedDataWrapper>::Remove(unsigned long const&, mozilla::gfx::SourceSurfaceSharedDataWrapper**)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, gfxFontFamily>::Remove(nsTSubstring<char> const&, gfxFontFamily**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Promise>::Remove(unsigned int const&, mozilla::dom::Promise**)
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::image::SurfaceKey>, mozilla::image::CachedSurface>::Remove(mozilla::image::SurfaceKey const&, mozilla::image::CachedSurface**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::image::Image>, mozilla::image::ImageSurfaceCache>::Remove(mozilla::image::Image*, mozilla::image::ImageSurfaceCache**)
Unexecuted instantiation: nsRefPtrHashtable<nsGenericHashKey<mozilla::image::ImageCacheKey>, imgCacheEntry>::Remove(mozilla::image::ImageCacheKey const&, imgCacheEntry**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::Gamepad>::Remove(unsigned int const&, mozilla::dom::Gamepad**)
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::CustomElementCreationCallback>::Remove(nsAtom*, mozilla::dom::CustomElementCreationCallback**)
Unexecuted instantiation: nsRefPtrHashtable<nsRefPtrHashKey<nsAtom>, mozilla::dom::Promise>::Remove(nsAtom*, mozilla::dom::Promise**)
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, nsExternalResourceMap::PendingLoad>::Remove(nsIURI*, nsExternalResourceMap::PendingLoad**)
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, imgIRequest>::Remove(nsIURI*, imgIRequest**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::AccessibleNode>::Remove(unsigned int const&, mozilla::dom::AccessibleNode**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::OverOutElementsWrapper>::Remove(unsigned int const&, mozilla::OverOutElementsWrapper**)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::GetUserMediaTask>::Remove(nsTSubstring<char16_t> const&, mozilla::GetUserMediaTask**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::GetUserMediaWindowListener>::Remove(unsigned long const&, mozilla::GetUserMediaWindowListener**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::DetailedPromise>::Remove(unsigned int const&, mozilla::dom::DetailedPromise**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::MediaKeySession>::Remove(unsigned int const&, mozilla::dom::MediaKeySession**)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::MediaKeySession>::Remove(nsTSubstring<char16_t> const&, mozilla::dom::MediaKeySession**)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::gmp::GMPRecordImpl>::Remove(nsTSubstring<char> const&, mozilla::gmp::GMPRecordImpl**)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::VoiceData>::Remove(nsTSubstring<char16_t> const&, mozilla::dom::VoiceData**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint32HashKey, mozilla::dom::SpeechDispatcherCallback>::Remove(unsigned int const&, mozilla::dom::SpeechDispatcherCallback**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<_NPAsyncSurface>, mozilla::plugins::PluginInstanceChild::DirectBitmap>::Remove(_NPAsyncSurface*, mozilla::plugins::PluginInstanceChild::DirectBitmap**)
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::indexedDB::FileInfo>::Remove(nsID const&, mozilla::dom::indexedDB::FileInfo**)
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::GetFilesHelperChild>::Remove(nsID const&, mozilla::dom::GetFilesHelperChild**)
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::FileCreatorHelper>::Remove(nsID const&, mozilla::dom::FileCreatorHelper**)
Unexecuted instantiation: nsRefPtrHashtable<nsIDHashKey, mozilla::dom::GetFilesHelper>::Remove(nsID const&, mozilla::dom::GetFilesHelper**)
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, nsXBLDocumentInfo>::Remove(nsIURI*, nsXBLDocumentInfo**)
Unexecuted instantiation: nsRefPtrHashtable<nsURIHashKey, mozilla::MozPromise<bool, nsresult, false>::Private>::Remove(nsIURI*, mozilla::MozPromise<bool, nsresult, false>::Private**)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::dom::ServiceWorkerRegistrationInfo>::Remove(nsTSubstring<char> const&, mozilla::dom::ServiceWorkerRegistrationInfo**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, nsIPresentationRespondingListener>::Remove(unsigned long const&, nsIPresentationRespondingListener**)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::PresentationSessionInfo>::Remove(nsTSubstring<char16_t> const&, mozilla::dom::PresentationSessionInfo**)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, nsIPresentationSessionListener>::Remove(nsTSubstring<char16_t> const&, nsIPresentationSessionListener**)
Unexecuted instantiation: nsRefPtrHashtable<nsStringHashKey, mozilla::dom::PresentationContentSessionInfo>::Remove(nsTSubstring<char16_t> const&, mozilla::dom::PresentationContentSessionInfo**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, nsIWidget>::Remove(void const*, nsIWidget**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<_GdkEventSequence>, mozilla::dom::Touch>::Remove(_GdkEventSequence*, mozilla::dom::Touch**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsIDocument>, imgRequestProxy>::Remove(nsIDocument*, imgRequestProxy**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::dom::BrowsingContext>::Remove(unsigned long const&, mozilla::dom::BrowsingContext**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::a11y::DocAccessible const>, mozilla::a11y::xpcAccessibleDocument>::Remove(mozilla::a11y::DocAccessible const*, mozilla::a11y::xpcAccessibleDocument**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsIDocument const>, mozilla::a11y::DocAccessible>::Remove(nsIDocument const*, mozilla::a11y::DocAccessible**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::a11y::DocAccessibleParent const>, mozilla::a11y::xpcAccessibleDocument>::Remove(mozilla::a11y::DocAccessibleParent const*, mozilla::a11y::xpcAccessibleDocument**)
Unexecuted instantiation: nsRefPtrHashtable<nsUint64HashKey, mozilla::a11y::AccTreeMutationEvent>::Remove(unsigned long const&, mozilla::a11y::AccTreeMutationEvent**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<void const>, mozilla::a11y::Accessible>::Remove(void const*, mozilla::a11y::Accessible**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<nsAtom const>, mozilla::extensions::WebExtensionPolicy>::Remove(nsAtom const*, mozilla::extensions::WebExtensionPolicy**)
Unexecuted instantiation: nsRefPtrHashtable<nsCStringHashKey, mozilla::extensions::WebExtensionPolicy>::Remove(nsTSubstring<char> const&, mozilla::extensions::WebExtensionPolicy**)
Unexecuted instantiation: nsRefPtrHashtable<nsPtrHashKey<mozilla::extensions::DocumentObserver const>, mozilla::extensions::DocumentObserver>::Remove(mozilla::extensions::DocumentObserver const*, mozilla::extensions::DocumentObserver**)
208
209
#endif // nsRefPtrHashtable_h__