blob: b2c26e01cff07ff8ad636b82d1210266e9043e1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// |jit-test| skip-if: !('oomTest' in this); --fast-warmup
// Prevent slowness with --ion-eager.
setJitCompilerOption("ion.warmup.trigger", 100);
function f() { return 1; }
function test() {
oomTest(function() {
function foo() {
for (var i = 0; i < 10; i++) {
f();
trialInline();
}
}
evaluate(foo.toString() + "foo()");
});
}
for (var i = 0; i < 3; i++) {
test();
}
|