1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// |jit-test| --fast-warmup; --no-threads function dummy() { with ({}) {} } function foo() { dummy(); var x = []; var y = []; for (var i = 0; i < 10; i++) { } for (var i = 0; i < 100; i++) { var swap = x; x = y; y = swap; } return x; } foo();