aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-454725.js
blob: a2469d11a0fdd41ff948ed21468d32805970a302 (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
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Flags: --expose-gc

var __v_9 = {};
var depth = 15;
var current = 0;

function __f_15(__v_3) {
  if ((__v_3 % 50) != 0) {
    return __v_3;
  } else {
    return __v_9 + 0.5;
  }
}
function __f_13(a) {
  a[100000 - 2] = 1;
  for (var __v_3= 0; __v_3 < 70000; ++__v_3 ) {
    a[__v_3] = __f_15(__v_3);
  }
}
function __f_2(size) {

}
var tmp;
function __f_18(allocator) {
  current++;
  if (current == depth) return;
  var __v_7 = new allocator(100000);
  __f_13(__v_7);
  var __v_4 = 6;
  for (var __v_3= 0; __v_3 < 70000; __v_3 += 501 ) {
    tmp += __v_3;
  }
  __f_18(Array);
  current--;
}

gc();
__f_18(__f_2);