v8/test/mjsunit/regress/regress-370827.js
jarin@chromium.org 3976ebef93 Make new space iterable for --log-gc and --heap-stats options
R=hpayer@chromium.org
BUG=370827
TEST=test/mjsunit/regress/regress-370827.js
LOG=N

Review URL: https://codereview.chromium.org/272503005

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21209 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-05-09 09:23:10 +00:00

22 lines
423 B
JavaScript

// Copyright 2014 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: --allow-natives-syntax --expose-gc --heap-stats
function g(dummy, x) {
var start = "";
if (x) { start = x + " - "; }
start = start + "array length";
};
function f() {
gc();
g([0.1]);
}
f();
%OptimizeFunctionOnNextCall(f);
f();
f();