1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 22:57:34 +00:00

LibJS: Inline bytecode ops for direct local/register access

These can do a lot less stuff if we put them directly in the interpreter
loop and allow them to access the locals/registers arrays directly.
This commit is contained in:
Andreas Kling 2023-09-27 10:31:07 +02:00
parent ae1ac9871b
commit f3606adc58
2 changed files with 33 additions and 4 deletions

View file

@ -40,6 +40,8 @@ public:
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const;
Register src() const { return m_src; }
private:
Register m_src;
};
@ -55,6 +57,8 @@ public:
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const;
Value value() const { return m_value; }
private:
Value m_value;
};