[typedarray] add i2f(f2i(v)) == v check and use f2i value if true

RESOLVED WONTFIX

Status

()

RESOLVED WONTFIX
9 years ago
7 years ago

People

(Reporter: vlad, Assigned: vlad)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Typed arrays, on trace, have to call a function to convert from a double to an integer.  In many cases the value will actually be an integer to begin with, so we can avoid the function call overhead by checking if i2f(f2i(v)) == v, and if so, just use the f2i(v) value instead of calling a function.
Tracer has been removed.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.