9598a1d1fa
This change is to recover 6% lost on Intl.NumberFormat.format.reused when JSNumber was make Dart2 clean. Use invoke_dynamic_specializer to replace call with HAbs instruction. Inject receiver check to condition receiver to a non-null number to improve. This part makes x.abs() one of the operations 'trusted' by '--trust-primitives'. Add one-shot accelerators for abs and get:sign. Change-Id: Ia423c4b398114abe1d4a784febbe664710f0a242 Reviewed-on: https://dart-review.googlesource.com/42890 Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Stephen Adams <sra@google.com>