1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

LibJS/JIT: Support the NewString bytecode op

This necessitated making the JIT::Compiler aware of the current
Bytecode::Executable, since that's where all the string literals are
held, but that seems like a good thing.
This commit is contained in:
Andreas Kling 2023-10-18 12:55:00 +02:00
parent efe58ebf2f
commit c2fe7af095
3 changed files with 30 additions and 3 deletions

View file

@ -157,6 +157,8 @@ public:
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const;
StringTableIndex index() const { return m_string; }
private:
StringTableIndex m_string;
};