node/deps/v8/test/mjsunit/regress/regress-454725.js
Ben Noordhuis 36cd5fb9d2 deps: upgrade v8 to 4.2.77.13
This commit applies some secondary changes in order to make `make test`
pass cleanly:

* disable broken postmortem debugging in common.gypi

* drop obsolete strict mode test in parallel/test-repl

* drop obsolete test parallel/test-v8-features

PR-URL: https://github.com/iojs/io.js/pull/1232
Reviewed-By: Fedor Indutny <fedor@indutny.com>
2015-04-28 14:38:16 -07:00

43 lines
789 B
JavaScript

// 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);