mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS+LibWeb: Pass constants into execution context constructor
The additional data being passed will be used in an upcoming commit. Allows splitting the churn of modified function signatures from the logically meaningful code change. No behavior change.
This commit is contained in:
committed by
Andreas Kling
parent
52c46483d1
commit
7002c47ce1
Notes:
github-actions[bot]
2026-03-29 11:45:12 +00:00
Author: https://github.com/InvalidUsernameException Commit: https://github.com/LadybirdBrowser/ladybird/commit/7002c47ce1f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8651 Reviewed-by: https://github.com/awesomekling
@@ -136,7 +136,7 @@ void ECMAScriptFunctionObject::initialize(Realm& realm)
|
||||
}
|
||||
}
|
||||
|
||||
void ECMAScriptFunctionObject::get_stack_frame_size(size_t& registers_and_locals_count, size_t& constants_count, size_t& argument_count)
|
||||
void ECMAScriptFunctionObject::get_stack_frame_info(size_t& registers_and_locals_count, ReadonlySpan<Value>& constants, size_t& argument_count)
|
||||
{
|
||||
auto& executable = shared_data().m_executable;
|
||||
if (!executable) {
|
||||
@@ -149,7 +149,7 @@ void ECMAScriptFunctionObject::get_stack_frame_size(size_t& registers_and_locals
|
||||
m_shared_data->clear_compile_inputs();
|
||||
}
|
||||
registers_and_locals_count = executable->registers_and_locals_count;
|
||||
constants_count = executable->constants.size();
|
||||
constants = executable->constants;
|
||||
argument_count = max(argument_count, static_cast<size_t>(formal_parameter_count()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user