Details
-
Technical task
-
Resolution: Done
-
P2: Important
Description
We can avoid QJSPrimitiveValue in many places where we're only operating on doubles anyway. For example, if we got an in-place increment or decrement and the operand as well as the result are double, we can just write:
result = operand - 1.0
No need to do any overflow handling or number coercion in that case.
Attachments
Issue Links
- resulted from
-
QTBUG-104512 Invalid code generated
-
- Closed
-
For Gerrit Dashboard: QTBUG-104549 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
460777,3 | CodeGen: Emit increment instead of addition for addition with constant 1 | dev | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |