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
commit 6cbcd521a2
Notes: sideshowbarker 2024-07-16 22:34:39 +09:00
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) \