summaryrefslogtreecommitdiff
path: root/js/src/vm/Interpreter.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-05-24 06:51:11 +0000
committerMoonchild <moonchild@palemoon.org>2022-05-24 06:51:46 +0000
commitdc5a60fb62a0f43fe77517bd0e46fe40358b44b0 (patch)
treecb5dcd22fb22fc292adaff89626c35e18e09a6be /js/src/vm/Interpreter.cpp
parent1588077e629baa1c27e03149e39f06c265419e0b (diff)
downloaduxp-dc5a60fb62a0f43fe77517bd0e46fe40358b44b0.tar.gz
Issue #1742 - Part 1: Refactor rooting base class templates
Based on Bug 1325406
Diffstat (limited to 'js/src/vm/Interpreter.cpp')
-rw-r--r--js/src/vm/Interpreter.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/js/src/vm/Interpreter.cpp b/js/src/vm/Interpreter.cpp
index 56f715e2be..7e3f2a7f1b 100644
--- a/js/src/vm/Interpreter.cpp
+++ b/js/src/vm/Interpreter.cpp
@@ -1613,11 +1613,7 @@ GetSuperEnvFunction(JSContext* cx, InterpreterRegs& regs)
*/
template<typename T>
-class ReservedRootedBase {
-};
-
-template<typename T>
-class ReservedRooted : public ReservedRootedBase<T>
+class ReservedRooted : public RootedBase<T, ReservedRooted<T>>
{
Rooted<T>* savedRoot;
@@ -1645,14 +1641,6 @@ class ReservedRooted : public ReservedRootedBase<T>
DECLARE_POINTER_ASSIGN_OPS(ReservedRooted, T)
};
-template <>
-class ReservedRootedBase<Value> : public ValueOperations<ReservedRooted<Value>>
-{};
-
-template <>
-class ReservedRootedBase<Scope*> : public ScopeCastOperation<ReservedRooted<Scope*>>
-{};
-
static MOZ_NEVER_INLINE bool
Interpret(JSContext* cx, RunState& state)
{