mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibJS: Replace arguments Span with argument_count in ExecutionContext
The arguments Span (pointer + size = 16 bytes) was always derivable from the tail array layout: data = values + (total_count - arg_count). Replace it with a u32 argument_count and derive the span on demand via arguments_span() / arguments_data() accessors. Shrinks ExecutionContext from 136 to 120 bytes.
This commit is contained in:
committed by
Andreas Kling
parent
75e7bc1e2a
commit
5f463ed989
Notes:
github-actions[bot]
2026-03-11 12:35:15 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/5f463ed9898 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8360 Reviewed-by: https://github.com/shannonbooth
@@ -42,7 +42,7 @@ ThrowCompletionOr<GC::Ref<Object>> AsyncGeneratorFunctionConstructor::construct(
|
||||
{
|
||||
auto& vm = this->vm();
|
||||
|
||||
ReadonlySpan<Value> arguments = vm.running_execution_context().arguments;
|
||||
ReadonlySpan<Value> arguments = vm.running_execution_context().arguments_span();
|
||||
|
||||
ReadonlySpan<Value> parameter_args = arguments;
|
||||
if (!parameter_args.is_empty())
|
||||
|
||||
Reference in New Issue
Block a user