mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibJS/Bytecode: Dedicated instructions for postfix increment/decrement
Instead of splitting the postfix variants into ToNumeric + Inc/Dec, we now have dedicated PostfixIncrement and PostfixDecrement instructions that handle both outputs in one go.
This commit is contained in:
parent
c4f49e343a
commit
9d9b737a58
4 changed files with 96 additions and 27 deletions
|
@ -91,6 +91,8 @@
|
|||
O(NewString) \
|
||||
O(NewTypeError) \
|
||||
O(Not) \
|
||||
O(PostfixDecrement) \
|
||||
O(PostfixIncrement) \
|
||||
O(PutById) \
|
||||
O(PutByIdWithThis) \
|
||||
O(PutByValue) \
|
||||
|
@ -111,7 +113,6 @@
|
|||
O(ThrowIfNotObject) \
|
||||
O(ThrowIfNullish) \
|
||||
O(ThrowIfTDZ) \
|
||||
O(ToNumeric) \
|
||||
O(Typeof) \
|
||||
O(TypeofVariable) \
|
||||
O(UnaryMinus) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue