2018-08-06 05:56:33 +00:00
|
|
|
// Copyright 2018 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
|
|
|
|
|
|
|
|
function f() {
|
|
|
|
return arguments.length;
|
2019-06-12 14:00:50 +00:00
|
|
|
};
|
|
|
|
%PrepareFunctionForOptimization(f);
|
2018-08-06 05:56:33 +00:00
|
|
|
var a = [];
|
|
|
|
%OptimizeFunctionOnNextCall(f);
|
2018-11-30 09:12:21 +00:00
|
|
|
a.length = 81832;
|
2018-08-06 05:56:33 +00:00
|
|
|
f(...a);
|