1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

LibJS: Store and maintain an "execution generation" counter

This counter is increased each time a synchronous execution sequence
completes, and will allow us to emulate the abstract operations
AddToKeptObjects & ClearKeptObjects efficiently.
This commit is contained in:
Idan Horowitz 2021-06-12 17:32:54 +03:00 committed by Linus Groh
parent 8a739f986a
commit 6913f06b6f
4 changed files with 11 additions and 0 deletions

View file

@ -141,6 +141,8 @@ Value Interpreter::run(Executable const& executable, BasicBlock const* entry_poi
if (vm().call_stack().size() == 1)
vm().pop_call_frame();
vm().finish_execution_generation();
return return_value;
}