diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-05-29 00:47:25 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-05-29 00:47:25 -0500 |
commit | f11b40c3ab4a5a766b0b71ab1e9a6199b23bbfeb (patch) | |
tree | 7b10fdf57c04235448662d0256ef76fa48a1d076 /dom/bindings/RootedRefPtr.h | |
parent | 5310bcfbad6c8687d0bdbe5e49fb73858dcc1631 (diff) | |
download | aura-central-f11b40c3ab4a5a766b0b71ab1e9a6199b23bbfeb.tar.gz |
[JS:Engine] Remove the use of tagged shape pointers
Diffstat (limited to 'dom/bindings/RootedRefPtr.h')
-rw-r--r-- | dom/bindings/RootedRefPtr.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/dom/bindings/RootedRefPtr.h b/dom/bindings/RootedRefPtr.h index 34f2da5c9..2563d4649 100644 --- a/dom/bindings/RootedRefPtr.h +++ b/dom/bindings/RootedRefPtr.h @@ -38,19 +38,12 @@ struct GCPolicy<RefPtr<T>> } // namespace JS namespace js { -template<typename T> -struct RootedBase<RefPtr<T>> +template<typename T, typename Wrapper> +struct WrappedPtrOperations<RefPtr<T>, Wrapper> { - operator RefPtr<T>& () const - { - auto& self = *static_cast<const JS::Rooted<RefPtr<T>>*>(this); - return self.get(); - } - operator T*() const { - auto& self = *static_cast<const JS::Rooted<RefPtr<T>>*>(this); - return self.get(); + return static_cast<const Wrapper*>(this)->get(); } }; } // namespace js |