1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +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

@ -655,6 +655,8 @@ JS::Interpreter& Document::interpreter()
dbgln(" {} at {}:{}:{}", function_name, source_range.filename, source_range.start.line, source_range.start.column);
}
}
vm.finish_execution_generation();
};
m_interpreter = JS::Interpreter::create<Bindings::WindowObject>(vm, *m_window);
}