Commit 5d3d965
[dart2wasm] Use Function.prototype.call.bind(Number.prototype.toString) for small ints and doubles
This increases `{int,double}.toString()` speed when switching to JS
strings (for `int`) and generally for `double`.
Change-Id: I5a3be41220f35c5226b63f09f5a7f9c25e262eb4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/403981
Commit-Queue: Martin Kustermann <[email protected]>
Reviewed-by: Slava Egorov <[email protected]>1 parent 4bcd8c2 commit 5d3d965
File tree
2 files changed
+22
-8
lines changed- sdk/lib/_internal
- wasm_js_compatibility/lib
- wasm/lib
2 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
| |||
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments