forked from LeenkxTeam/Kmake
32 lines
709 B
JavaScript
32 lines
709 B
JavaScript
// Copyright 2024 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: --jit-fuzzing --fuzzing --allow-natives-syntax
|
|
|
|
function main() {
|
|
const {
|
|
getExtrasBindingObject: v0,
|
|
} = d8;
|
|
const {
|
|
getContinuationPreservedEmbedderData: v2,
|
|
setContinuationPreservedEmbedderData: v3
|
|
} = v0();
|
|
function f0(v5) {
|
|
v3(v5);
|
|
return v2();
|
|
}
|
|
const v4 = v6 => {
|
|
const v7 = (%PrepareFunctionForOptimization(), f0(), %OptimizeFunctionOnNextCall(), f0(v6));
|
|
gc();
|
|
v7();
|
|
};
|
|
try {
|
|
v4({});
|
|
} catch (e) {}
|
|
}
|
|
main();
|
|
main();
|
|
%OptimizeFunctionOnNextCall(main);
|
|
main();
|