mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +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
Notes:
sideshowbarker
2024-07-18 12:33:32 +09:00
Author: https://github.com/gunnarbeutner
Commit: 6a0d1fa259
Pull-request: https://github.com/SerenityOS/serenity/pull/7940
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
16 changed files with 173 additions and 82 deletions
|
@ -156,7 +156,7 @@ Value ScriptFunction::execute_function_body()
|
|||
if constexpr (JS_BYTECODE_DEBUG) {
|
||||
dbgln("Compiled Bytecode::Block for function '{}':", m_name);
|
||||
for (auto& block : m_bytecode_executable->basic_blocks)
|
||||
block.dump();
|
||||
block.dump(*m_bytecode_executable);
|
||||
}
|
||||
}
|
||||
return bytecode_interpreter->run(*m_bytecode_executable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue