mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 05:22:24 +00:00
LibJS/Bytecode: Store SetLocal's local index as a u32
Same size as local indexes everywhere else.
This commit is contained in:
parent
e43d96f310
commit
68507b7e55
Notes:
sideshowbarker
2024-07-17 03:59:29 +09:00
Author: https://github.com/awesomekling
Commit: 68507b7e55
Pull-request: https://github.com/SerenityOS/serenity/pull/24240
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 2 additions and 2 deletions
|
@ -554,12 +554,12 @@ public:
|
|||
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
|
||||
ByteString to_byte_string_impl(Bytecode::Executable const&) const;
|
||||
|
||||
size_t index() const { return m_index; }
|
||||
u32 index() const { return m_index; }
|
||||
Operand dst() const { return Operand(Operand::Type::Local, m_index); }
|
||||
Operand src() const { return m_src; }
|
||||
|
||||
private:
|
||||
size_t m_index;
|
||||
u32 m_index;
|
||||
Operand m_src;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue