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:
Gunnar Beutner 2021-06-09 10:02:01 +02:00 committed by Andreas Kling
commit 6a0d1fa259
Notes: sideshowbarker 2024-07-18 12:33:32 +09:00
16 changed files with 173 additions and 82 deletions

View file

@ -45,7 +45,7 @@ public:
void seal();
void dump() const;
void dump(Executable const&) const;
ReadonlyBytes instruction_stream() const { return ReadonlyBytes { m_buffer, m_buffer_size }; }
void* next_slot() { return m_buffer + m_buffer_size; }