diff --git a/js/src/jit/VMFunctions.h b/js/src/jit/VMFunctions.h index 5de18ff6c06f..792cb26f68aa 100644 --- a/js/src/jit/VMFunctions.h +++ b/js/src/jit/VMFunctions.h @@ -380,6 +380,18 @@ template <> struct TypeToRootType { template <> struct TypeToRootType { static const uint32_t result = VMFunction::RootCell; }; +template <> struct TypeToRootType { + static const uint32_t result = VMFunction::RootCell; +}; +template <> struct TypeToRootType > { + static const uint32_t result = VMFunction::RootObject; +}; +template <> struct TypeToRootType > { + static const uint32_t result = VMFunction::RootCell; +}; +template struct TypeToRootType > { + // Fail for Handle types that aren't specialized above. +}; template struct OutParamToDataType { static const DataType result = Type_Void; }; template <> struct OutParamToDataType { static const DataType result = Type_Value; };