Closed Bug 554461 Opened 14 years ago Closed 7 months ago

[typedarray] use more NumberTraits

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: vlad, Unassigned)

Details

The typed array patch in bug 550351 could benefit from NumberTraits in a few ways:

1) use StringToNumberType instead of js_ValueToNumber when converting known strings;

2) Use NumberTraits<NativeType>::toSelfType(d) as arg to setIndex, to ensure compile-time optimization instead of depending on the compiler to be smart enough to remove dead code in the big if block chain

3) Use NumberTraits::NaN() in nativeFromValue
vlad, do you want to take this, or should I?
Assignee: general → nobody
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.