From 3c492aabac6148c91123288fd539eaf789c03016 Mon Sep 17 00:00:00 2001 From: Jon Coppeard Date: Tue, 2 Sep 2014 10:30:37 +0200 Subject: [PATCH] Bug 1061214 r=terrence --- js/src/jit/VMFunctions.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; };