mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
LibJS: Store strings in a string table
Instead of using Strings in the bytecode ops this adds a global string table to the Executable struct which individual operations can refer to using indices. This brings bytecode ops one step closer to being pointer free.
This commit is contained in:
parent
4efccbd030
commit
6a0d1fa259
16 changed files with 173 additions and 82 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
Type type() const { return m_type; }
|
||||
size_t length() const;
|
||||
String to_string() const;
|
||||
String to_string(Bytecode::Executable const&) const;
|
||||
void execute(Bytecode::Interpreter&) const;
|
||||
static void destroy(Instruction&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue