LibJS/Bytecode: Make primitive strings be constants

Instead of emitting a NewString instruction to construct a primitive
string from a parsed literal, we now instantiate the PrimitiveString on
the heap during codegen.
This commit is contained in:
Andreas Kling 2024-03-03 11:34:36 +01:00
parent fd694e8672
commit 46d209c55b
Notes: sideshowbarker 2024-07-16 22:14:49 +09:00
8 changed files with 27 additions and 52 deletions

View file

@ -88,7 +88,6 @@
O(NewObject) \
O(NewPrimitiveArray) \
O(NewRegExp) \
O(NewString) \
O(NewTypeError) \
O(Not) \
O(PostfixDecrement) \