blob: a7368ae03cb4c56c4a1db609c4b39b38f3df07c2 [file] [log] [blame]
rniwa@webkit.org1b971d72015-05-14 04:19:18 +00001function createInLoop(x, count) {
2 noInline(x)
3 for (var i = 0; i < 5000; i++) {
4 var obj = new x;
5 if (!(obj instanceof x))
6 throw "Failed to instantiate the right object";
7 }
8}
9
10function y() { return function () {} }
11
12createInLoop(y());
13
14function z() { return function () {} }
15
16createInLoop(z());
17createInLoop(z());
18createInLoop(z());