repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Bug 1848518 - Update source filename of opensl in moz.build. r=cubeb-reviewers,chunmin
[gecko.git]
/
js
/
src
/
jit-test
/
tests
/
cacheir
/
bug1851911.js
blob
c066ed9c3e6f45b8654ee3c137c24608a4ef772e
1
// |jit-test| --fast-warmup; --no-threads; --blinterp-eager
2
3
function foo(o) {
4
return o.x;
5
}
6
7
function bar(n) {
8
with ({}) {}
9
class C {}
10
for (var i = 0; i < n; i++) {
11
var c = new C();
12
c.x = 0;
13
foo(c);
14
}
15
}
16
17
with ({}) {}
18
19
function triggerIonCompile() {
20
for (var i = 0; i < 10; i++) {
21
bar(3);
22
}
23
}
24
25
triggerIonCompile();
26
27
// Fill up shape list
28
for (var i = 0; i < 6; i++) {
29
bar(10);
30
}
31
32
bar(10);
33
gc();
34
35
triggerIonCompile();