Closed Bug 554460 Opened 14 years ago Closed 13 years ago

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

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: vlad, Assigned: vlad)

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
Closed: 13 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.