1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug657198.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +// |jit-test| slow; 1.5 + 1.6 +// Binary: cache/js-dbg-32-599d1c6cba63-linux 1.7 +// Flags: -j 1.8 +// 1.9 +eval("") 1.10 +o15 = {} 1.11 +function f11(o) { 1.12 + props = Object.getOwnPropertyNames(o) 1.13 + prop = props.length ? prop[prop.e] + "" : "" 1.14 + o[prop] = 3 1.15 +} 1.16 +function f12(o) { 1.17 + _someglobal_ = o; 1.18 + for (j = 0; j < 5; j++) { 1.19 + for (x in { 1.20 + x: { 1.21 + x: function() { 1.22 + return _someglobal_ 1.23 + } 1.24 + }.x() 1.25 + }.x) { 1.26 + ({ 1.27 + x: { 1.28 + x: function() {} 1.29 + }.x() 1.30 + }[x]) 1.31 + } 1.32 + gc() 1.33 + } 1.34 +} { 1.35 + for (i = 0; i < 100; i++) { 1.36 + f12(o15) 1.37 + f11(o15) 1.38 + } 1.39 +}