Backout bug 658351 due to build bustage and perma-orange.

This commit is contained in:
Mounir Lamouri 2011-05-25 18:28:17 +02:00
parent 2db7748838
commit c75d2b3969

View File

@ -461,10 +461,6 @@ JSVAL_TO_BOOLEAN_IMPL(jsval_layout l)
static JS_ALWAYS_INLINE jsval_layout
BOOLEAN_TO_JSVAL_IMPL(JSBool b)
{
// This assertion exists to catch JSAPI users who accidentally create bogo-booleans thanks to
// the fact that JSBool is, in reality, an integer. These users must convert to JS_TRUE or
// JS_FALSE before packing the boolean into a jsval.
JS_ASSERT(b == JS_TRUE || b == JS_FALSE);
jsval_layout l;
l.s.tag = JSVAL_TAG_BOOLEAN;
l.s.payload.boo = b;
@ -657,10 +653,6 @@ JSVAL_TO_BOOLEAN_IMPL(jsval_layout l)
static JS_ALWAYS_INLINE jsval_layout
BOOLEAN_TO_JSVAL_IMPL(JSBool b)
{
// This assertion exists to catch JSAPI users who accidentally create bogo-booleans thanks to
// the fact that JSBool is, in reality, an integer. These users must convert to JS_TRUE or
// JS_FALSE before packing the boolean into a jsval.
JS_ASSERT(b == JS_TRUE || b == JS_FALSE);
jsval_layout l;
l.asBits = ((uint64)(uint32)b) | JSVAL_SHIFTED_TAG_BOOLEAN;
return l;