LibJS: Add new operand type for function arguments

This allows us to directly access passed arguments instead of copying
them to register/local first using GetArgument instruction.
This commit is contained in:
Aliaksandr Kalenik 2025-04-24 22:10:41 +02:00 committed by Andreas Kling
parent 81a3bfd492
commit 3f04d18ef7
Notes: github-actions[bot] 2025-04-26 09:03:30 +00:00
7 changed files with 27 additions and 93 deletions

View file

@ -87,6 +87,7 @@ public:
Vector<FlyString> local_variable_names;
size_t local_index_base { 0 };
size_t argument_index_base { 0 };
Optional<IdentifierTableIndex> length_identifier;