Commit c99bf94
authored
Debugging: set vmctx slot before top-of-function epoch yield point. (#12664)
Epoch yields emit debug events, and the debug event handler can walk
the stack and look at the instance associated with each frame, which
requires `vmctx`. We weren't setting the `vmctx` slot until after the
epoch check in the function preamble, exposing a null or uninitialized
slot to the accessor. This PR fixes that by hoisting the
initialization to the very top of the preamble.1 parent f85e4d0 commit c99bf94
2 files changed
Lines changed: 50 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3865 | 3865 | | |
3866 | 3866 | | |
3867 | 3867 | | |
| 3868 | + | |
| 3869 | + | |
3868 | 3870 | | |
3869 | 3871 | | |
3870 | 3872 | | |
| |||
3885 | 3887 | | |
3886 | 3888 | | |
3887 | 3889 | | |
3888 | | - | |
3889 | | - | |
3890 | 3890 | | |
3891 | 3891 | | |
3892 | 3892 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1372 | 1372 | | |
1373 | 1373 | | |
1374 | 1374 | | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
0 commit comments