Commit 4ca398a
authored
src: iterate over base objects to prepare for snapshot
Instead of iterating over the bindings, iterate over the base
objects that are snapshottable. This allows us to snapshot
base objects that are not bindings. In addition this refactors
the InternalFieldInfo class to eliminate potential undefined
behaviors, and renames it to InternalFieldInfoBase.
The {de}serialize callbacks now expect a InternalFieldInfo struct
nested in Snapshotable classes that can be used to carry
serialization data around. This allows us to create structs
inheriting from InternalFieldInfo for Snapshotable objects
that need custom fields.
PR-URL: #44192
Refs: #37476
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent 74c2c8e commit 4ca398aCopy full SHA for 4ca398a
File tree
Expand file treeCollapse file tree
13 files changed
+139
-116
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
13 files changed
+139
-116
lines changedOpen diff view settings
Collapse file
-11Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
835 | 835 | |
836 | 836 | |
837 | 837 | |
838 | | - |
839 | | - |
840 | | - |
841 | | - |
842 | | - |
843 | | - |
844 | | - |
845 | | - |
846 | | - |
847 | | - |
848 | | - |
849 | 838 | |
850 | 839 | |
851 | 840 | |
|
Collapse file
+8-5Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1669 | 1669 | |
1670 | 1670 | |
1671 | 1671 | |
1672 | | - |
1673 | 1672 | |
1674 | 1673 | |
1675 | 1674 | |
| ||
1697 | 1696 | |
1698 | 1697 | |
1699 | 1698 | |
| 1699 | + |
| 1700 | + |
| 1701 | + |
| 1702 | + |
1700 | 1703 | |
1701 | 1704 | |
1702 | 1705 | |
| ||
1729 | 1732 | |
1730 | 1733 | |
1731 | 1734 | |
1732 | | - |
1733 | | - |
1734 | | - |
| 1735 | + |
| 1736 | + |
| 1737 | + |
1735 | 1738 | |
1736 | 1739 | |
1737 | 1740 | |
| ||
1758 | 1761 | |
1759 | 1762 | |
1760 | 1763 | |
1761 | | - |
| 1764 | + |
1762 | 1765 | |
1763 | 1766 | |
1764 | 1767 | |
|
Collapse file
+5-8Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
956 | 956 | |
957 | 957 | |
958 | 958 | |
959 | | - |
| 959 | + |
960 | 960 | |
961 | 961 | |
962 | 962 | |
963 | 963 | |
964 | | - |
| 964 | + |
965 | 965 | |
966 | 966 | |
967 | 967 | |
968 | 968 | |
969 | 969 | |
970 | 970 | |
971 | | - |
| 971 | + |
972 | 972 | |
973 | 973 | |
974 | 974 | |
| ||
1062 | 1062 | |
1063 | 1063 | |
1064 | 1064 | |
1065 | | - |
| 1065 | + |
1066 | 1066 | |
1067 | 1067 | |
1068 | 1068 | |
| ||
1485 | 1485 | |
1486 | 1486 | |
1487 | 1487 | |
1488 | | - |
| 1488 | + |
1489 | 1489 | |
1490 | 1490 | |
1491 | 1491 | |
| ||
1643 | 1643 | |
1644 | 1644 | |
1645 | 1645 | |
1646 | | - |
1647 | | - |
1648 | | - |
1649 | 1646 | |
1650 | 1647 | |
1651 | 1648 | |
|
Collapse file
+12-10Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
462 | 462 | |
463 | 463 | |
464 | 464 | |
465 | | - |
466 | | - |
467 | | - |
468 | | - |
469 | | - |
| 465 | + |
| 466 | + |
| 467 | + |
| 468 | + |
470 | 469 | |
471 | 470 | |
472 | 471 | |
| ||
475 | 474 | |
476 | 475 | |
477 | 476 | |
478 | | - |
479 | | - |
480 | | - |
| 477 | + |
| 478 | + |
481 | 479 | |
| 480 | + |
| 481 | + |
| 482 | + |
482 | 483 | |
483 | 484 | |
484 | | - |
| 485 | + |
485 | 486 | |
486 | | - |
| 487 | + |
| 488 | + |
487 | 489 | |
488 | 490 | |
489 | 491 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
146 | 146 | |
147 | 147 | |
148 | 148 | |
| 149 | + |
| 150 | + |
149 | 151 | |
150 | 152 | |
151 | 153 | |
|
Collapse file
+8-4Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2400 | 2400 | |
2401 | 2401 | |
2402 | 2402 | |
2403 | | - |
| 2403 | + |
2404 | 2404 | |
2405 | 2405 | |
2406 | 2406 | |
2407 | 2407 | |
2408 | 2408 | |
2409 | 2409 | |
2410 | 2410 | |
2411 | | - |
| 2411 | + |
2412 | 2412 | |
2413 | 2413 | |
2414 | 2414 | |
2415 | 2415 | |
2416 | 2416 | |
2417 | 2417 | |
| 2418 | + |
| 2419 | + |
| 2420 | + |
2418 | 2421 | |
2419 | 2422 | |
2420 | | - |
| 2423 | + |
2421 | 2424 | |
2422 | | - |
| 2425 | + |
| 2426 | + |
2423 | 2427 | |
2424 | 2428 | |
2425 | 2429 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
| 26 | + |
26 | 27 | |
27 | 28 | |
28 | 29 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
50 | 50 | |
51 | 51 | |
52 | 52 | |
| 53 | + |
| 54 | + |
53 | 55 | |
54 | 56 | |
55 | 57 | |
|
Collapse file
src/node_process_methods.cc
Copy file name to clipboardExpand all lines: src/node_process_methods.cc+8-4Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
524 | 524 | |
525 | 525 | |
526 | 526 | |
527 | | - |
| 527 | + |
528 | 528 | |
529 | 529 | |
530 | 530 | |
531 | 531 | |
| 532 | + |
| 533 | + |
| 534 | + |
532 | 535 | |
533 | 536 | |
534 | | - |
| 537 | + |
535 | 538 | |
536 | | - |
| 539 | + |
| 540 | + |
537 | 541 | |
538 | 542 | |
539 | 543 | |
540 | 544 | |
541 | 545 | |
542 | 546 | |
543 | | - |
| 547 | + |
544 | 548 | |
545 | 549 | |
546 | 550 | |
|
Collapse file
+46-40Lines changed: 46 additions & 40 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
638 | 638 | |
639 | 639 | |
640 | 640 | |
641 | | - |
| 641 | + |
642 | 642 | |
643 | 643 | |
644 | 644 | |
| ||
661 | 661 | |
662 | 662 | |
663 | 663 | |
664 | | - |
| 664 | + |
665 | 665 | |
666 | 666 | |
667 | 667 | |
| ||
1179 | 1179 | |
1180 | 1180 | |
1181 | 1181 | |
1182 | | - |
1183 | | - |
1184 | | - |
1185 | | - |
1186 | | - |
1187 | | - |
1188 | | - |
1189 | | - |
1190 | | - |
1191 | | - |
1192 | | - |
1193 | 1182 | |
1194 | 1183 | |
1195 | 1184 | |
| ||
1212 | 1201 | |
1213 | 1202 | |
1214 | 1203 | |
1215 | | - |
1216 | | - |
| 1204 | + |
| 1205 | + |
1217 | 1206 | |
1218 | | - |
| 1207 | + |
1219 | 1208 | |
1220 | 1209 | |
1221 | 1210 | |
| ||
1225 | 1214 | |
1226 | 1215 | |
1227 | 1216 | |
1228 | | - |
| 1217 | + |
| 1218 | + |
| 1219 | + |
| 1220 | + |
1229 | 1221 | |
1230 | 1222 | |
1231 | 1223 | |
1232 | 1224 | |
1233 | | - |
| 1225 | + |
| 1226 | + |
| 1227 | + |
| 1228 | + |
| 1229 | + |
| 1230 | + |
| 1231 | + |
| 1232 | + |
| 1233 | + |
| 1234 | + |
| 1235 | + |
1234 | 1236 | |
1235 | 1237 | |
1236 | 1238 | |
| ||
1263 | 1265 | |
1264 | 1266 | |
1265 | 1267 | |
1266 | | - |
| 1268 | + |
1267 | 1269 | |
1268 | | - |
1269 | | - |
1270 | | - |
| 1270 | + |
| 1271 | + |
| 1272 | + |
1271 | 1273 | |
1272 | 1274 | |
1273 | 1275 | |
1274 | 1276 | |
1275 | 1277 | |
1276 | | - |
| 1278 | + |
1277 | 1279 | |
1278 | 1280 | |
1279 | 1281 | |
| ||
1282 | 1284 | |
1283 | 1285 | |
1284 | 1286 | |
1285 | | - |
1286 | | - |
1287 | | - |
| 1287 | + |
| 1288 | + |
| 1289 | + |
1288 | 1290 | |
1289 | | - |
1290 | | - |
| 1291 | + |
| 1292 | + |
| 1293 | + |
| 1294 | + |
| 1295 | + |
| 1296 | + |
| 1297 | + |
| 1298 | + |
| 1299 | + |
| 1300 | + |
1291 | 1301 | |
1292 | | - |
| 1302 | + |
| 1303 | + |
1293 | 1304 | |
1294 | | - |
1295 | | - |
1296 | | - |
| 1305 | + |
| 1306 | + |
| 1307 | + |
1297 | 1308 | |
1298 | | - |
1299 | | - |
| 1309 | + |
| 1310 | + |
1300 | 1311 | |
1301 | 1312 | |
1302 | 1313 | |
1303 | | - |
1304 | | - |
1305 | | - |
1306 | | - |
1307 | | - |
| 1314 | + |
1308 | 1315 | |
1309 | | - |
1310 | 1316 | |
1311 | 1317 | |
1312 | 1318 | |
|
0 commit comments