From c0d16889c7339367aff8394cea9e7a863a32c549 Mon Sep 17 00:00:00 2001 From: David Mandelin Date: Mon, 15 Nov 2010 13:02:37 -0800 Subject: [PATCH] Backed out changeset 1ccf7b6e0eb7 -- it was a temporary diagnostic. --- js/src/jsapi.h | 6 ------ js/src/jsscopeinlines.h | 4 ---- 2 files changed, 10 deletions(-) diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 93aaa4bd526..11e095bc160 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -326,12 +326,6 @@ JSID_TO_STRING(jsid id) return (JSString *)(JSID_BITS(id)); } -static JS_ALWAYS_INLINE JSBool -JSID_IS_ZERO(jsid id) -{ - return JSID_BITS(id) == NULL; -} - JS_PUBLIC_API(JSBool) JS_StringHasBeenInterned(JSString *str); diff --git a/js/src/jsscopeinlines.h b/js/src/jsscopeinlines.h index cdd7b2c7778..11a9b3cc721 100644 --- a/js/src/jsscopeinlines.h +++ b/js/src/jsscopeinlines.h @@ -173,10 +173,6 @@ Shape::Shape(jsid id, js::PropertyOp getter, js::PropertyOp setter, uint32 slot, table(NULL), id(id), rawGetter(getter), rawSetter(setter), slot(slot), attrs(uint8(attrs)), flags(uint8(flags)), shortid(int16(shortid)), parent(NULL) { -#define JS_CRASH(addr) *(int *) addr = 0 - if (JSID_IS_ZERO(id)) - JS_CRASH(0xa8); -#undef JS_CRASH JS_ASSERT_IF(slotSpan != SHAPE_INVALID_SLOT, slotSpan < JSObject::NSLOTS_LIMIT); JS_ASSERT_IF(getter && (attrs & JSPROP_GETTER), getterObj->isCallable()); JS_ASSERT_IF(setter && (attrs & JSPROP_SETTER), setterObj->isCallable());