Modify code which produces |if (cond);| in non-debug builds to not expand into an empty control statement. r=sparky

This commit is contained in:
Jeff Walden 2009-03-22 18:37:06 -07:00
parent 4230c8101b
commit 2ef0c03fab

View File

@ -9583,8 +9583,10 @@ TraceRecorder::record_JSOP_LENGTH()
LIns* v_ins;
if (OBJ_IS_ARRAY(cx, obj)) {
if (OBJ_IS_DENSE_ARRAY(cx, obj)) {
if (!guardDenseArray(obj, obj_ins, BRANCH_EXIT))
if (!guardDenseArray(obj, obj_ins, BRANCH_EXIT)) {
JS_NOT_REACHED("OBJ_IS_DENSE_ARRAY but not?!?");
return false;
}
} else {
if (!guardClass(obj, obj_ins, &js_SlowArrayClass, snapshot(BRANCH_EXIT)))
ABORT_TRACE("can't trace length property access on non-array");