1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:08:10 +00:00

LibJS: Implement bytecode generation for UpdateExpression :^)

Added Increment and Decrement bytecode ops to support this. Postfix
updates use a temporary register to preserve the original value.

Note that this patch only implements Identifier updates. Member
expression updates are a TODO.
This commit is contained in:
Andreas Kling 2021-06-09 11:40:38 +02:00
parent 5c98f979c6
commit 59eedd6de0
5 changed files with 88 additions and 1 deletions

View file

@ -54,7 +54,9 @@
O(UnsignedRightShift) \
O(In) \
O(InstanceOf) \
O(ConcatString)
O(ConcatString) \
O(Increment) \
O(Decrement)
namespace JS::Bytecode {