2021-06-08 14:04:59 +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.
|
|
|
|
//
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
|
2021-10-10 11:10:43 +02:00
|
|
|
var s_uninternalized = "concurrent" + "-skip-finalization";
|
|
|
|
%InternalizeString(s_uninternalized);
|
2021-06-08 14:04:59 +02:00
|
|
|
|
2021-10-10 11:10:43 +02:00
|
|
|
function foo() {}
|
|
|
|
|
|
|
|
// Make sure %OptimizeFunctionOnNextCall works with a non-internalized
|
|
|
|
// string parameter.
|
|
|
|
%PrepareFunctionForOptimization(foo);
|
|
|
|
%OptimizeFunctionOnNextCall(foo, s_uninternalized)
|