Bug 1074911 - Remove JS_ASSERT and JS_ASSERT_IF macros. r=jorendorff
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Wed, 01 Oct 2014 19:17:53 +0200
changeset 208232 99be24fa714185409fbb0969252e4f8611d6e771
parent 208231 020a62efb303bb8a1d78a7b124de112c7c704fe9
child 208233 2bf0e7ba7177b81ec2147e5cccfb9ffab01fa38e
push id27580
push userkwierso@gmail.com
push dateWed, 01 Oct 2014 23:26:55 +0000
treeherderautoland@af6c928893c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1074911
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1074911 - Remove JS_ASSERT and JS_ASSERT_IF macros. r=jorendorff
js/public/Utility.h
--- a/js/public/Utility.h
+++ b/js/public/Utility.h
@@ -46,19 +46,16 @@ namespace js {}
 #define JS_FRESH_TENURED_PATTERN 0x4F
 #define JS_MOVED_TENURED_PATTERN 0x49
 #define JS_SWEPT_TENURED_PATTERN 0x4B
 #define JS_ALLOCATED_TENURED_PATTERN 0x4D
 #define JS_SWEPT_CODE_PATTERN 0x3b
 #define JS_SWEPT_FRAME_PATTERN 0x5b
 #define JS_POISONED_FORKJOIN_CHUNK 0xBD
 
-#define JS_ASSERT(expr)           MOZ_ASSERT(expr)
-#define JS_ASSERT_IF(cond, expr)  MOZ_ASSERT_IF(cond, expr)
-
 #define JS_STATIC_ASSERT(cond)           static_assert(cond, "JS_STATIC_ASSERT")
 #define JS_STATIC_ASSERT_IF(cond, expr)  MOZ_STATIC_ASSERT_IF(cond, expr, "JS_STATIC_ASSERT_IF")
 
 extern MOZ_NORETURN JS_PUBLIC_API(void)
 JS_Assert(const char *s, const char *file, int ln);
 
 /*
  * Custom allocator support for SpiderMonkey