diff --git a/js/public/Utility.h b/js/public/Utility.h index 32f39f6a73a7..adee3b15d871 100644 --- a/js/public/Utility.h +++ b/js/public/Utility.h @@ -247,25 +247,25 @@ static inline void js_free(void* p) */ #define JS_DECLARE_NEW_METHODS(NEWNAME, ALLOCATOR, QUALIFIERS)\ template \ - QUALIFIERS T *NEWNAME() {\ + QUALIFIERS T *NEWNAME() MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T, ())\ }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1) {\ + QUALIFIERS T *NEWNAME(P1 &&p1) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1)))\ }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2)))\ }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -273,7 +273,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -282,7 +282,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -292,7 +292,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -303,7 +303,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -315,7 +315,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -328,7 +328,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -342,7 +342,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9, P10 &&p10) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9, P10 &&p10) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -357,7 +357,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9, P10 &&p10, P11 &&p11) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9, P10 &&p10, P11 &&p11) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\ @@ -373,7 +373,7 @@ static inline void js_free(void* p) }\ \ template \ - QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9, P10 &&p10, P11 &&p11, P12 &&p12) {\ + QUALIFIERS T *NEWNAME(P1 &&p1, P2 &&p2, P3 &&p3, P4 &&p4, P5 &&p5, P6 &&p6, P7 &&p7, P8 &&p8, P9 &&p9, P10 &&p10, P11 &&p11, P12 &&p12) MOZ_HEAP_ALLOCATOR {\ JS_NEW_BODY(ALLOCATOR, T,\ (mozilla::Forward(p1),\ mozilla::Forward(p2),\