Undo hackaround for bug 529837.
authorBrendan Eich <brendan@mozilla.org>
Tue, 24 Nov 2009 15:15:37 -0800
changeset 35351 a71067721eb03df15dacd667f45fc955f78293aa
parent 35350 c0a3622e5e31811081d9cae683e23a8900159567
child 35352 92ea7f43feb6c2317cd889883137e2d577c2d3a9
push id10560
push userrsayre@mozilla.com
push dateTue, 01 Dec 2009 18:15:12 +0000
treeherdermozilla-central@e2860a4dcf0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs529837
milestone1.9.3a1pre
Undo hackaround for bug 529837.
js/src/jsops.cpp
--- a/js/src/jsops.cpp
+++ b/js/src/jsops.cpp
@@ -3251,17 +3251,17 @@ BEGIN_CASE(JSOP_LAMBDA)
     LOAD_FUNCTION(0);
     obj = FUN_OBJECT(fun);
 
     /* do-while(0) so we can break instead of using a goto. */
     do {
         if (FUN_NULL_CLOSURE(fun)) {
             parent = fp->scopeChain;
 
-            if (0 && OBJ_GET_PARENT(cx, obj) == parent) {
+            if (OBJ_GET_PARENT(cx, obj) == parent) {
                 op = JSOp(regs.pc[JSOP_LAMBDA_LENGTH]);
 
                 /*
                  * Optimize ({method: function () { ... }, ...}) and
                  * this.method = function () { ... }; bytecode sequences.
                  */
                 if (op == JSOP_SETMETHOD) {
 #ifdef DEBUG