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/xbl/nsXBLMaybeCompiled.h | |
parent | 5310bcfbad6c8687d0bdbe5e49fb73858dcc1631 (diff) | |
download | aura-central-f11b40c3ab4a5a766b0b71ab1e9a6199b23bbfeb.tar.gz |
[JS:Engine] Remove the use of tagged shape pointers
Diffstat (limited to 'dom/xbl/nsXBLMaybeCompiled.h')
-rw-r--r-- | dom/xbl/nsXBLMaybeCompiled.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dom/xbl/nsXBLMaybeCompiled.h b/dom/xbl/nsXBLMaybeCompiled.h index 4bd7f8396..d9d16fdfb 100644 --- a/dom/xbl/nsXBLMaybeCompiled.h +++ b/dom/xbl/nsXBLMaybeCompiled.h @@ -126,15 +126,15 @@ struct IsHeapConstructibleType<nsXBLMaybeCompiled<T>> static const bool value = true; }; -template <class UncompiledT> -class HeapBase<nsXBLMaybeCompiled<UncompiledT>> +template <class UncompiledT, class Wrapper> +class HeapBase<nsXBLMaybeCompiled<UncompiledT>, Wrapper> { - const JS::Heap<nsXBLMaybeCompiled<UncompiledT>>& wrapper() const { - return *static_cast<const JS::Heap<nsXBLMaybeCompiled<UncompiledT>>*>(this); + const Wrapper& wrapper() const { + return *static_cast<const Wrapper*>(this); } - JS::Heap<nsXBLMaybeCompiled<UncompiledT>>& wrapper() { - return *static_cast<JS::Heap<nsXBLMaybeCompiled<UncompiledT>>*>(this); + Wrapper& wrapper() { + return *static_cast<Wrapper*>(this); } const nsXBLMaybeCompiled<UncompiledT>* extract() const { |