blob: 327db73debe3ae6539138c2c8337f68c0136eefd [file] [edit]
"use strict";
function foo(x) {
var tmp = x + 1;
return tmp + arguments[0];
}
function bar(x) {
return foo(x);
}
noInline(bar);
for (var i = 0; i < testLoopCount; ++i) {
var result = bar(i);
if (result != i + i + 1)
throw "Error: bad result: " + result;
}
var result = bar(4.5);
if (result != 4.5 + 4.5 + 1)
throw "Error: bad result at end: " + result;