Commit 86e22b4
src: track contexts in the Environment instead of AsyncHooks
This makes it easier to support the vm contexts in the startup
snapshot. We now manage the promise hooks using references to
the contexts from the Environment, and AsyncHooks only hold references
to the hooks.
PR-URL: #45282
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>1 parent 717db1d commit 86e22b4Copy full SHA for 86e22b4
File tree
Expand file treeCollapse file tree
4 files changed
+42
-25
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
4 files changed
+42
-25
lines changedOpen diff view settings
Collapse file
+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
185 | 185 | |
186 | 186 | |
187 | 187 | |
188 | | - |
189 | | - |
190 | | - |
191 | | - |
192 | | - |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
193 | 193 | |
194 | 194 | |
195 | 195 | |
|
Collapse file
+27-12Lines changed: 27 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | | - |
| 66 | + |
67 | 67 | |
68 | 68 | |
69 | 69 | |
70 | 70 | |
71 | 71 | |
72 | 72 | |
73 | 73 | |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
74 | 82 | |
75 | 83 | |
76 | 84 | |
77 | 85 | |
78 | 86 | |
79 | | - |
| 87 | + |
80 | 88 | |
81 | 89 | |
82 | 90 | |
| ||
179 | 187 | |
180 | 188 | |
181 | 189 | |
182 | | - |
| 190 | + |
183 | 191 | |
184 | 192 | |
185 | 193 | |
| ||
192 | 200 | |
193 | 201 | |
194 | 202 | |
| 203 | + |
195 | 204 | |
| 205 | + |
196 | 206 | |
197 | 207 | |
198 | | - |
| 208 | + |
199 | 209 | |
200 | 210 | |
201 | 211 | |
202 | | - |
203 | | - |
204 | | - |
| 212 | + |
| 213 | + |
205 | 214 | |
206 | 215 | |
207 | 216 | |
208 | 217 | |
209 | 218 | |
210 | | - |
211 | | - |
| 219 | + |
| 220 | + |
212 | 221 | |
213 | 222 | |
214 | 223 | |
| ||
543 | 552 | |
544 | 553 | |
545 | 554 | |
546 | | - |
| 555 | + |
| 556 | + |
547 | 557 | |
548 | 558 | |
549 | 559 | |
| ||
1466 | 1476 | |
1467 | 1477 | |
1468 | 1478 | |
1469 | | - |
1470 | | - |
| 1479 | + |
| 1480 | + |
| 1481 | + |
1471 | 1482 | |
1472 | 1483 | |
1473 | 1484 | |
| ||
1602 | 1613 | |
1603 | 1614 | |
1604 | 1615 | |
| 1616 | + |
| 1617 | + |
| 1618 | + |
| 1619 | + |
1605 | 1620 | |
1606 | 1621 | |
1607 | 1622 | |
|
Collapse file
+9-6Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
303 | 303 | |
304 | 304 | |
305 | 305 | |
306 | | - |
| 306 | + |
| 307 | + |
307 | 308 | |
308 | 309 | |
309 | 310 | |
| ||
322 | 323 | |
323 | 324 | |
324 | 325 | |
325 | | - |
326 | | - |
327 | | - |
328 | 326 | |
329 | 327 | |
330 | 328 | |
| ||
387 | 385 | |
388 | 386 | |
389 | 387 | |
390 | | - |
391 | | - |
392 | 388 | |
393 | 389 | |
394 | 390 | |
| ||
701 | 697 | |
702 | 698 | |
703 | 699 | |
| 700 | + |
| 701 | + |
| 702 | + |
| 703 | + |
704 | 704 | |
705 | 705 | |
706 | 706 | |
| 707 | + |
| 708 | + |
707 | 709 | |
708 | 710 | |
709 | 711 | |
| ||
1145 | 1147 | |
1146 | 1148 | |
1147 | 1149 | |
| 1150 | + |
1148 | 1151 | |
1149 | 1152 | |
1150 | 1153 | |
|
Collapse file
+1-2Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
164 | 164 | |
165 | 165 | |
166 | 166 | |
167 | | - |
168 | | - |
| 167 | + |
169 | 168 | |
170 | 169 | |
171 | 170 | |
|
0 commit comments