RUB-SysSec / JIT-Picker

Apache License 2.0
61 stars 8 forks source link

Why wrap generated program in main()? #5

Open chennbnbnb opened 9 months ago

chennbnbnb commented 9 months ago

according to V8Profile, it alway wrap generated program in followed template :

function main() {
const fhash = fuzzilli_hash;
...
gc();
}
%NeverOptimizeFunction(main);
main();

May I ask why you do this? this looks no different than executing it directly in script file