2014-02-28 12:29:19 +00:00
|
|
|
// 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.
|
|
|
|
|
2018-05-09 08:06:57 +00:00
|
|
|
// Flags: --allow-natives-syntax --verify-heap
|
2014-02-28 12:29:19 +00:00
|
|
|
|
|
|
|
function f() {
|
|
|
|
var a = new Array(84632);
|
|
|
|
// Allocation folding will bail out trying to fold the elements alloc of
|
|
|
|
// array "b."
|
|
|
|
var b = new Array(84632);
|
|
|
|
var c = new Array(84632);
|
|
|
|
return [a, b, c];
|
|
|
|
}
|
|
|
|
f(); f();
|
|
|
|
%OptimizeFunctionOnNextCall(f);
|
|
|
|
for(var i = 0; i < 10; i++) {
|
|
|
|
f();
|
|
|
|
}
|