mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibJS: Shrink two u64 fields in ExecutionContext to u32
To shrink ExecutionContext, these two fields are made 32-bit: - skip_when_determining_incumbent_counter - program_counter
This commit is contained in:
parent
4c7ffc0552
commit
59ce6c9b41
Notes:
github-actions[bot]
2025-10-29 20:22:03 +00:00
Author: https://github.com/awesomekling
Commit: 59ce6c9b41
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6629
4 changed files with 12 additions and 10 deletions
|
|
@ -207,8 +207,9 @@ void prepare_to_run_callback(JS::Realm& realm)
|
|||
auto* context = top_most_script_having_execution_context(vm);
|
||||
|
||||
// 3. If context is not null, increment context's skip-when-determining-incumbent counter.
|
||||
if (context)
|
||||
if (context) {
|
||||
context->skip_when_determining_incumbent_counter++;
|
||||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
|
||||
|
|
@ -265,8 +266,9 @@ void clean_up_after_running_callback(JS::Realm const& realm)
|
|||
auto* context = top_most_script_having_execution_context(vm);
|
||||
|
||||
// 2. If context is not null, decrement context's skip-when-determining-incumbent counter.
|
||||
if (context)
|
||||
if (context) {
|
||||
context->skip_when_determining_incumbent_counter--;
|
||||
}
|
||||
|
||||
// 3. Assert: the topmost entry of the backup incumbent realm stack is realm.
|
||||
auto& event_loop = HTML::main_thread_event_loop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue