bug1851911.js (449B)
1 // |jit-test| --fast-warmup; --no-threads; --blinterp-eager 2 3 function foo(o) { 4 return o.x; 5 } 6 7 function bar(n) { 8 with ({}) {} 9 class C {} 10 for (var i = 0; i < n; i++) { 11 var c = new C(); 12 c.x = 0; 13 foo(c); 14 } 15 } 16 17 with ({}) {} 18 19 function triggerIonCompile() { 20 for (var i = 0; i < 10; i++) { 21 bar(3); 22 } 23 } 24 25 triggerIonCompile(); 26 27 // Fill up shape list 28 for (var i = 0; i < 6; i++) { 29 bar(10); 30 } 31 32 bar(10); 33 gc(); 34 35 triggerIonCompile();