Commit 62325f9
[vm/bytecode] Collect more bytecode token positions for a given script.
Refactor Kernel::CollectTokenPositionsFor, but do not try to factorize code for
fields and functions, as too many handles would need to be passed around.
Bytecode reading creates duplicate script objects requiring scripts to be
matched by their url rather than by their raw address when collecting token
positions in bytecode. However, url comparison is not yet used, because
collecting token positions in the duplicated script 'dart:core/map.dart'
(in default mode) causes crashes in kernel reading. Will revisit.
Fix service test valid_source locations_test.dart and make sure fields
are properly reloaded, except fields injected by fasta.
Remove unused argument 'record' of KernelReaderHelper::ReadPosition().
Handle bytecode stub frame in IsAsyncMachinery() tester in debugger.
Change-Id: Ifbddcaec00e0696f7de13c5cf1e74380b31d2419
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112402
Commit-Queue: Régis Crelier <[email protected]>
Reviewed-by: Alexander Markov <[email protected]>1 parent f7a300f commit 62325f9
File tree
6 files changed
+55
-45
lines changed- runtime
- observatory/tests/service
- vm
- compiler/frontend
6 files changed
+55
-45
lines changedLines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
41 | | - | |
| 48 | + | |
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
Lines changed: 9 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
994 | 994 | | |
995 | 995 | | |
996 | 996 | | |
997 | | - | |
998 | | - | |
| 997 | + | |
999 | 998 | | |
1000 | 999 | | |
1001 | 1000 | | |
1002 | | - | |
1003 | | - | |
| 1001 | + | |
1004 | 1002 | | |
1005 | 1003 | | |
1006 | 1004 | | |
| |||
1056 | 1054 | | |
1057 | 1055 | | |
1058 | 1056 | | |
1059 | | - | |
1060 | | - | |
| 1057 | + | |
1061 | 1058 | | |
1062 | 1059 | | |
1063 | 1060 | | |
1064 | | - | |
1065 | | - | |
| 1061 | + | |
1066 | 1062 | | |
1067 | 1063 | | |
1068 | 1064 | | |
1069 | | - | |
1070 | | - | |
| 1065 | + | |
1071 | 1066 | | |
1072 | 1067 | | |
1073 | 1068 | | |
| |||
1132 | 1127 | | |
1133 | 1128 | | |
1134 | 1129 | | |
1135 | | - | |
1136 | 1130 | | |
1137 | 1131 | | |
1138 | 1132 | | |
1139 | 1133 | | |
1140 | | - | |
1141 | 1134 | | |
1142 | 1135 | | |
1143 | 1136 | | |
1144 | 1137 | | |
1145 | | - | |
1146 | 1138 | | |
1147 | 1139 | | |
1148 | 1140 | | |
| |||
1201 | 1193 | | |
1202 | 1194 | | |
1203 | 1195 | | |
1204 | | - | |
1205 | | - | |
| 1196 | + | |
1206 | 1197 | | |
1207 | 1198 | | |
1208 | 1199 | | |
1209 | | - | |
1210 | | - | |
| 1200 | + | |
1211 | 1201 | | |
1212 | 1202 | | |
1213 | 1203 | | |
1214 | 1204 | | |
1215 | | - | |
1216 | 1205 | | |
1217 | 1206 | | |
1218 | 1207 | | |
| |||
2560 | 2549 | | |
2561 | 2550 | | |
2562 | 2551 | | |
2563 | | - | |
| 2552 | + | |
2564 | 2553 | | |
2565 | | - | |
2566 | | - | |
2567 | | - | |
| 2554 | + | |
2568 | 2555 | | |
2569 | 2556 | | |
2570 | 2557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
1082 | | - | |
| 1082 | + | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1101 | 1105 | | |
1102 | 1106 | | |
1103 | 1107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
264 | 271 | | |
265 | 272 | | |
266 | 273 | | |
267 | 274 | | |
268 | 275 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | 279 | | |
| |||
279 | 283 | | |
280 | 284 | | |
281 | 285 | | |
| 286 | + | |
| 287 | + | |
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
| |||
291 | 297 | | |
292 | 298 | | |
293 | 299 | | |
294 | | - | |
| 300 | + | |
295 | 301 | | |
296 | 302 | | |
297 | 303 | | |
| |||
306 | 312 | | |
307 | 313 | | |
308 | 314 | | |
| 315 | + | |
| 316 | + | |
309 | 317 | | |
310 | 318 | | |
311 | | - | |
312 | | - | |
313 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
314 | 322 | | |
315 | 323 | | |
316 | 324 | | |
317 | 325 | | |
318 | 326 | | |
319 | 327 | | |
320 | 328 | | |
| 329 | + | |
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
| |||
348 | 357 | | |
349 | 358 | | |
350 | 359 | | |
| 360 | + | |
351 | 361 | | |
352 | 362 | | |
353 | 363 | | |
| |||
363 | 373 | | |
364 | 374 | | |
365 | 375 | | |
366 | | - | |
367 | 376 | | |
368 | 377 | | |
369 | 378 | | |
| |||
391 | 400 | | |
392 | 401 | | |
393 | 402 | | |
394 | | - | |
395 | 403 | | |
396 | 404 | | |
397 | 405 | | |
| |||
429 | 437 | | |
430 | 438 | | |
431 | 439 | | |
432 | | - | |
433 | 440 | | |
434 | 441 | | |
435 | 442 | | |
| |||
447 | 454 | | |
448 | 455 | | |
449 | 456 | | |
450 | | - | |
451 | 457 | | |
452 | 458 | | |
453 | 459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
477 | 482 | | |
478 | 483 | | |
479 | 484 | | |
| |||
493 | 498 | | |
494 | 499 | | |
495 | 500 | | |
496 | | - | |
| 501 | + | |
| 502 | + | |
497 | 503 | | |
498 | 504 | | |
499 | 505 | | |
| |||
0 commit comments