blob: 97d1ab4f85b1e10102d0fdd0a0284ccf21d8154f [file] [log] [blame]
// This tests that arguments elimination works with OSR entry.
// We need to have an inner call so that arguments elimination
// sees there are potential candidates.
var args;
function foo(a)
{
args = arguments;
var result = 0;
for (var i = 0; i < 1000000; ++i) {
(function() {
return arguments[0];
})(42);
result += a;
}
return result;
}
noInline(foo);
foo(42);