// Copyright 2021 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 --opt --turbo-inliningfunctionmain(){functionvul(x0,x1,...args){constres=Reflect.construct(Array,args,vul);letlocal_1;letlocal_2;letlocal_3;letlocal_4;letlocal_5;returnres;}%PrepareFunctionForOptimization(vul);returnvul(1,2,3,4,5,6,7,8,9,10,11,12);}%PrepareFunctionForOptimization(main);main();constunoptimized_result=main();%OptimizeFunctionOnNextCall(main);constoptimized_result=main();assertEquals(unoptimized_result,optimized_result);