diff options
Diffstat (limited to 'deps/v8/tools/clusterfuzz/v8_sanity_checks.js')
-rw-r--r-- | deps/v8/tools/clusterfuzz/v8_sanity_checks.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/v8/tools/clusterfuzz/v8_sanity_checks.js b/deps/v8/tools/clusterfuzz/v8_sanity_checks.js index f2cb8935a20..c2f0b2a4d9e 100644 --- a/deps/v8/tools/clusterfuzz/v8_sanity_checks.js +++ b/deps/v8/tools/clusterfuzz/v8_sanity_checks.js @@ -30,3 +30,16 @@ print("https://crbug.com/985154"); } print(Object.getOwnPropertyNames(foo().bar)); })(); + +print("Suppresses sensitive natives"); +(function () { + function foo() {} + %PrepareFunctionForOptimization(foo); + foo(); + foo(); + %OptimizeFunctionOnNextCall(foo); + foo(); + print(%GetOptimizationStatus(foo)); + const fun = new Function("f", "sync", "return %GetOptimizationStatus(f);"); + print(fun(foo)); +})(); |