mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 17:28:48 +00:00
LibJS/Bytecode: Make StringTableIndex be a 32-bit index
This makes a bunch of instructions smaller.
This commit is contained in:
parent
b99f0a7e22
commit
601e10d50c
Notes:
sideshowbarker
2024-07-18 05:01:22 +09:00
Author: https://github.com/awesomekling
Commit: 601e10d50c
Pull-request: https://github.com/SerenityOS/serenity/pull/24276
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/shannonbooth
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace JS::Bytecode {
|
namespace JS::Bytecode {
|
||||||
|
|
||||||
AK_TYPEDEF_DISTINCT_NUMERIC_GENERAL(size_t, StringTableIndex, Comparison);
|
AK_TYPEDEF_DISTINCT_NUMERIC_GENERAL(u32, StringTableIndex, Comparison);
|
||||||
|
|
||||||
class StringTable {
|
class StringTable {
|
||||||
AK_MAKE_NONMOVABLE(StringTable);
|
AK_MAKE_NONMOVABLE(StringTable);
|
||||||
|
|
|
@ -315,7 +315,7 @@ class MarkedVector;
|
||||||
|
|
||||||
namespace Bytecode {
|
namespace Bytecode {
|
||||||
class BasicBlock;
|
class BasicBlock;
|
||||||
enum class Builtin;
|
enum class Builtin : u8;
|
||||||
class Executable;
|
class Executable;
|
||||||
class Generator;
|
class Generator;
|
||||||
class Instruction;
|
class Instruction;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue