2017-10-18 15:03:02 -07:00
|
|
|
// Copyright 2017 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.
|
|
|
|
|
2020-07-13 10:39:42 +02:00
|
|
|
// Flags: --allow-natives-syntax --fuzzing
|
2017-10-18 15:03:02 -07:00
|
|
|
|
2020-07-13 10:39:42 +02:00
|
|
|
// Do not crash on non-JSFunction input when fuzzing.
|
2017-10-18 15:03:02 -07:00
|
|
|
%NeverOptimizeFunction(undefined);
|
|
|
|
%NeverOptimizeFunction(true);
|
|
|
|
%NeverOptimizeFunction(1);
|
|
|
|
%NeverOptimizeFunction({});
|
2020-10-15 20:17:08 +02:00
|
|
|
%NeverOptimizeFunction();
|
2020-07-13 10:39:42 +02:00
|
|
|
|
|
|
|
%PrepareFunctionForOptimization(print);
|
|
|
|
%OptimizeFunctionOnNextCall(print);
|