LibJS/Bytecode: Store SetLocal's local index as a u32

Same size as local indexes everywhere else.
This commit is contained in:
Andreas Kling 2024-05-06 13:34:50 +02:00
commit 68507b7e55
Notes: sideshowbarker 2024-07-17 03:59:29 +09:00

View file

@ -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;
};