mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS/Bytecode: Keep instruction source mappings in Executable
Instead of storing source offsets with each instruction, we now keep them in a side table in Executable. This shrinks each instruction by 8 bytes, further improving locality.
This commit is contained in:
@@ -84,6 +84,8 @@ public:
|
||||
Vector<ExceptionHandlers> exception_handlers;
|
||||
Vector<size_t> basic_block_start_offsets;
|
||||
|
||||
HashMap<size_t, SourceRecord> source_map;
|
||||
|
||||
ByteString const& get_string(StringTableIndex index) const { return string_table->get(index); }
|
||||
DeprecatedFlyString const& get_identifier(IdentifierTableIndex index) const { return identifier_table->get(index); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user