sbarati@apple.com | 5d2af1a | 2018-09-19 21:00:08 +0000 | [diff] [blame] | 1 | //@ runDefault("--collectContinuously=1", "--useConcurrentJIT=0", "--useConcurrentGC=1") |
2 | |||||
3 | function foo(oo) { | ||||
4 | oo.x = 4; | ||||
5 | oo.y = 4; | ||||
6 | oo.e = oo; | ||||
7 | oo.e = 7; | ||||
8 | oo.f = 8; | ||||
9 | } | ||||
10 | noInline(foo); | ||||
11 | |||||
12 | function Foo() { | ||||
13 | foo(this); | ||||
14 | } | ||||
15 | |||||
16 | for (var i = 0; i < 100000; i++) { | ||||
17 | g(); | ||||
18 | } | ||||
19 | |||||
20 | function g(){ | ||||
21 | foo({f:8}); | ||||
22 | new Foo(); | ||||
23 | new Foo(); | ||||
24 | new Foo(); | ||||
25 | } |