blob: 9f99054590a41c156b36bffe77fca0864e1f7e8c [file] [log] [blame]
description(
"Tests that if you alias the arguments in a very small function, arguments simplification still works."
);
function foo() {
var args = arguments;
return args[0] + args[1];
}
silentTestPass = true;
noInline(foo);
for (var i = 0; i < 200; i = dfgIncrement({f:foo, i:i + 1, n:100}))
shouldBe("foo(i, i + 1)", "" + (i + i + 1));