blob: daf1d2d8b95b02c09376549c10889f9743b6e502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// |jit-test| --fast-warmup; --no-threads; --blinterp-eager
function foo(o) {
return foo_inner(o);
}
function foo_inner(o) {
return o.x;
}
function bar(n) {
with ({}) {}
class C {}
for (var i = 0; i < n; i++) {
var c = new C();
c.x = 0;
foo(c);
}
}
with ({}) {}
function triggerIonCompile() {
for (var i = 0; i < 10; i++) {
bar(3);
}
}
triggerIonCompile();
// Fill up shape list
for (var i = 0; i < 6; i++) {
bar(10);
}
// Overflow shape list, adding a new baseline IC.
bar(10);
// Purge a stub inside a monomorphically-inlined script.
gc();
triggerIonCompile();
|