blob: a2469d11a0fdd41ff948ed21468d32805970a302 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// Flags: --expose-gc
6
7var __v_9 = {};
8var depth = 15;
9var current = 0;
10
11function __f_15(__v_3) {
12 if ((__v_3 % 50) != 0) {
13 return __v_3;
14 } else {
15 return __v_9 + 0.5;
16 }
17}
18function __f_13(a) {
19 a[100000 - 2] = 1;
20 for (var __v_3= 0; __v_3 < 70000; ++__v_3 ) {
21 a[__v_3] = __f_15(__v_3);
22 }
23}
24function __f_2(size) {
25
26}
27var tmp;
28function __f_18(allocator) {
29 current++;
30 if (current == depth) return;
31 var __v_7 = new allocator(100000);
32 __f_13(__v_7);
33 var __v_4 = 6;
34 for (var __v_3= 0; __v_3 < 70000; __v_3 += 501 ) {
35 tmp += __v_3;
36 }
37 __f_18(Array);
38 current--;
39}
40
41gc();
42__f_18(__f_2);