From 5936c394b3a9e49265a604c64e09b31435b6b2fc Mon Sep 17 00:00:00 2001 From: Jon Coppeard Date: Tue, 26 Nov 2013 10:21:22 +0000 Subject: [PATCH] Bug 942354 - GC: Remove NAME_ALL_GC_ROOTS #define r=terrence --- js/src/jsapi.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 48ce92e1cd6..cd29c4bfb23 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -1947,14 +1947,6 @@ JS_AddStringRoot(JSContext *cx, JSString **rp); extern JS_PUBLIC_API(bool) JS_AddObjectRoot(JSContext *cx, JSObject **rp); -#ifdef NAME_ALL_GC_ROOTS -#define JS_DEFINE_TO_TOKEN(def) #def -#define JS_DEFINE_TO_STRING(def) JS_DEFINE_TO_TOKEN(def) -#define JS_AddValueRoot(cx,vp) JS_AddNamedValueRoot((cx), (vp), (__FILE__ ":" JS_TOKEN_TO_STRING(__LINE__)) -#define JS_AddStringRoot(cx,rp) JS_AddNamedStringRoot((cx), (rp), (__FILE__ ":" JS_TOKEN_TO_STRING(__LINE__)) -#define JS_AddObjectRoot(cx,rp) JS_AddNamedObjectRoot((cx), (rp), (__FILE__ ":" JS_TOKEN_TO_STRING(__LINE__)) -#endif - extern JS_PUBLIC_API(bool) JS_AddNamedValueRoot(JSContext *cx, jsval *vp, const char *name);