Sign in
webkit
/
WebKit
/
36168652e4948b4e847a9c1caf1fabcf1810968f
/
.
/
JSTests
/
microbenchmarks
/
strcat-const.js
blob: d20c0b97490ad8190caf3b499dd5de6ce2988e1e [
file
] [
log
] [
blame
]
function
foo
(
a
,
b
)
{
return
a
+
b
;
}
function
bar
()
{
return
foo
(
"hello "
,
"world!"
);
}
noInline
(
bar
);
var
result
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
=
bar
();
if
(
result
!=
"hello world!"
)
throw
"Error: bad result: "
+
result
;