mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
4230c8101b
commit
2ef0c03fab
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user