2014-03-31 14:38:28 +02: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-07-25 19:30:07 +02:00
|
|
|
// Flags: --allow-natives-syntax --verify-heap
|
2014-03-31 14:38:28 +02: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];
|
2019-08-16 11:32:46 +02:00
|
|
|
};
|
|
|
|
%PrepareFunctionForOptimization(f);
|
|
|
|
f();
|
|
|
|
f();
|
2014-03-31 14:38:28 +02:00
|
|
|
%OptimizeFunctionOnNextCall(f);
|
2019-08-16 11:32:46 +02:00
|
|
|
for (var i = 0; i < 10; i++) {
|
2014-03-31 14:38:28 +02:00
|
|
|
f();
|
|
|
|
}
|