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

LibJS/JIT: Add fast path for UnaryMinus on Int32

5% speedup on Octane/mandreel.js :^)
This commit is contained in:
Andreas Kling 2023-12-11 20:47:43 +01:00
parent 78419e858d
commit 6cbcd521a2
2 changed files with 55 additions and 1 deletions

View file

@ -54,6 +54,12 @@ private:
O(In, in) \
O(InstanceOf, instance_of)
# define JS_ENUMERATE_COMMON_UNARY_OPS_WITHOUT_FAST_PATH(O) \
O(BitwiseNot, bitwise_not) \
O(Not, not_) \
O(UnaryPlus, unary_plus) \
O(Typeof, typeof_)
# define JS_ENUMERATE_COMPARISON_OPS(O) \
O(LessThan, less_than, SignedLessThan, Below) \
O(LessThanEquals, less_than_equals, SignedLessThanOrEqualTo, BelowOrEqual) \