Fix 433279, r=mrbkap+shaver, a=schrep.
authorbrendan@mozilla.org
Thu, 22 May 2008 22:06:09 -0700
changeset 15154 85824dd60304a7fc2bd6ecb8ce59216b7e83dc37
parent 15153 8d910413ca709dc5bc7511707ad2b21ae1abd349
child 15155 7317a3627b4c29ef3c9d93704cea2c60f0b5e767
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap, schrep
bugs433279
milestone1.9pre
Fix 433279, r=mrbkap+shaver, a=schrep.
js/src/jsparse.c
--- a/js/src/jsparse.c
+++ b/js/src/jsparse.c
@@ -285,17 +285,18 @@ NewOrRecycledNode(JSContext *cx, JSTreeC
             }
             break;
           case PN_TERNARY:
             RecycleTree(pn->pn_kid1, tc);
             RecycleTree(pn->pn_kid2, tc);
             RecycleTree(pn->pn_kid3, tc);
             break;
           case PN_BINARY:
-            RecycleTree(pn->pn_left, tc);
+            if (pn->pn_left != pn->pn_right)
+                RecycleTree(pn->pn_left, tc);
             RecycleTree(pn->pn_right, tc);
             break;
           case PN_UNARY:
             RecycleTree(pn->pn_kid, tc);
             break;
           case PN_NAME:
             RecycleTree(pn->pn_expr, tc);
             break;