Commit c86df3f
committed
Disable BailOnNoProfile in Generators/Asyncs
- BailOnNoProfile marks all code after it as dead
- if variable is used in a yield BUT incremented after BailOnNoProfile
- Jit would delete the increment and mark variable as constant
- interpreter would increment BUT JIT would reload as const
- would yield same value multiple times
Ideally should introduce Generator/Async specific version of BailOnNoProfile
That doesn't mark code after it as dead - but that would be larger work.
For now disable BailOnNoProfile for generators/Asyncs.1 parent c7ca1c2 commit c86df3f
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
| |||
0 commit comments