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
|
|
@ -305,7 +305,7 @@ ThrowCompletionOr<Value> Interpreter::run(SourceTextModule& module)
|
|||
return js_undefined();
|
||||
}
|
||||
|
||||
NEVER_INLINE Interpreter::HandleExceptionResponse Interpreter::handle_exception(size_t& program_counter, Value exception)
|
||||
NEVER_INLINE Interpreter::HandleExceptionResponse Interpreter::handle_exception(u32& program_counter, Value exception)
|
||||
{
|
||||
reg(Register::exception()) = exception;
|
||||
m_scheduled_jump = {};
|
||||
|
|
@ -349,7 +349,7 @@ FLATTEN_ON_CLANG void Interpreter::run_bytecode(size_t entry_point)
|
|||
auto& executable = current_executable();
|
||||
auto const* bytecode = executable.bytecode.data();
|
||||
|
||||
size_t& program_counter = running_execution_context.program_counter;
|
||||
u32& program_counter = running_execution_context.program_counter;
|
||||
program_counter = entry_point;
|
||||
|
||||
// Declare a lookup table for computed goto with each of the `handle_*` labels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue