Commit 55fdd32
committed
Ensure that ES.* abstract operations are able to be inlined.
Add a bogus assignment to a function prototype, which appears to be the
magic hint to treat function assignments as constant (until proven
otherwise). Also get rid of the after-the-fact mutation of the ES
object by making IsPromise an ordinary function. (We could also
call `Object.freeze(ES)` but it doesn't actually improve performance
further.)1 parent 859f415 commit 55fdd32
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
| |||
2015 | 2017 | | |
2016 | 2018 | | |
2017 | 2019 | | |
2018 | | - | |
| 2020 | + | |
2019 | 2021 | | |
2020 | 2022 | | |
2021 | 2023 | | |
| |||
2423 | 2425 | | |
2424 | 2426 | | |
2425 | 2427 | | |
2426 | | - | |
| 2428 | + | |
2427 | 2429 | | |
2428 | 2430 | | |
2429 | 2431 | | |
| |||
2441 | 2443 | | |
2442 | 2444 | | |
2443 | 2445 | | |
2444 | | - | |
| 2446 | + | |
2445 | 2447 | | |
2446 | 2448 | | |
2447 | 2449 | | |
| |||
0 commit comments