1 // 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 7 var __v_9 = {}; 8 var depth = 15; 9 var current = 0; 10 11 function __f_15(__v_3) { 12 if ((__v_3 % 50) != 0) { 13 return __v_3; 14 } else { 15 return __v_9 + 0.5; 16 } 17 } 18 function __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 } 24 function __f_2(size) { 25 26 } 27 var tmp; 28 function __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 41 gc(); 42 __f_18(__f_2); 43