Commit 137ce23
committed
fix(strict-execution-order): don't mark pure-annotated local calls as execution-order-sensitive
Pure-annotated calls to local functions (e.g. `/*#__PURE__*/ foo()`) should
not trigger `ExecutionOrderSensitive`, since the annotation is a developer
contract that the call is side-effect-free. Only `Unknown` and
`GlobalVarAccess` flags should trigger wrapping.
This also removes the now-unused `SideEffectDetail::PureAnnotation` flag.1 parent eec7d73 commit 137ce23
File tree
4 files changed
+11
-22
lines changed- crates
- rolldown_common/src/types
- rolldown
- src/ast_scanner
- side_effect_detector
- tests/rolldown/function/experimental/strict_execution_order/issue_4920
4 files changed
+11
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
| |||
202 | 201 | | |
203 | 202 | | |
204 | 203 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 204 | | |
209 | 205 | | |
210 | | - | |
211 | 206 | | |
212 | 207 | | |
213 | 208 | | |
| |||
1086 | 1081 | | |
1087 | 1082 | | |
1088 | 1083 | | |
1089 | | - | |
| 1084 | + | |
1090 | 1085 | | |
1091 | 1086 | | |
1092 | 1087 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
45 | 42 | | |
46 | 43 | | |
47 | | - | |
48 | 44 | | |
49 | 45 | | |
50 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
0 commit comments