3b914b2bf5
Bug: Change-Id: I53b68e8a4200a87d9f14b9540b52cab316678b2d Reviewed-on: https://chromium-review.googlesource.com/836593 Commit-Queue: Hannes Payer <hpayer@chromium.org> Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Cr-Commit-Position: refs/heads/master@{#50233}
22 lines
410 B
JavaScript
22 lines
410 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
|
|
|
|
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();
|