Commit 42c82fe
committed
[wip] changes to support Node.js v16
This isn't quite ready for review yet, I just want to get it out there
so people can see that progress is being made. The biggest problem
currently is that this currently breaks support for Node.js v14.
With this diff, our tests are much better. Previously they were entirely
failing on Node 16. Now:
* `stack-test` passes (12/12)
* `inspect-test` mostly passes (55/59)
* `frame-test` somewhat passes (7/25)
There are a lot of changes in this diff. I plan on splitting the commits
before the review, but here's a summary of the changes:
1. `ScopeInfo` is no longer a `FixedArray` as of v8/v8@ecaac329. The
`Length` field was also removed in v8/v8@f731e13f.
- The length field shifted everything over by a slot, meaning that a
bunch of offsets changed.
- Since `ScopeInfo` is no longer a `FixedArray`, I changed callsites
to use `HeapObject::LoadFieldValue` rather than `FixedArray::Get`.
2. Changes to V8 calling conventions
- The arguments adaptor frame no longer exists. Modified
`frame-test.js` to match.
- Arguments are no longer pushed "in reverse". Modified
`JSFrame::LeaParamSlot` to match.
3. Postmortem data fixes
- `class_Map__constructor_or_backpointer__Object` is now
`class_Map__constructor_or_back_pointer__Object` (note the extra
`_`).
- `class_Script__source__Object` is weirdly _not_ present in Node 16
but _is_ present in both Node 14 and Node 18. I added a default to
the correct value of 8.1 parent 39b38a9 commit 42c82fe
File tree
5 files changed
+53
-37
lines changed- src
- test/plugin
5 files changed
+53
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
300 | 305 | | |
301 | 306 | | |
302 | 307 | | |
303 | | - | |
| 308 | + | |
304 | 309 | | |
305 | 310 | | |
306 | 311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
| 725 | + | |
| 726 | + | |
726 | 727 | | |
727 | 728 | | |
728 | 729 | | |
729 | 730 | | |
730 | | - | |
| 731 | + | |
731 | 732 | | |
732 | 733 | | |
733 | | - | |
| 734 | + | |
734 | 735 | | |
735 | 736 | | |
736 | | - | |
| 737 | + | |
| 738 | + | |
737 | 739 | | |
738 | | - | |
739 | | - | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
740 | 743 | | |
741 | 744 | | |
742 | 745 | | |
| |||
746 | 749 | | |
747 | 750 | | |
748 | 751 | | |
749 | | - | |
| 752 | + | |
750 | 753 | | |
751 | 754 | | |
752 | 755 | | |
| |||
1091 | 1094 | | |
1092 | 1095 | | |
1093 | 1096 | | |
1094 | | - | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1095 | 1101 | | |
1096 | 1102 | | |
1097 | 1103 | | |
1098 | 1104 | | |
1099 | 1105 | | |
1100 | 1106 | | |
1101 | | - | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1102 | 1110 | | |
1103 | 1111 | | |
1104 | 1112 | | |
1105 | | - | |
1106 | | - | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1107 | 1117 | | |
1108 | 1118 | | |
1109 | 1119 | | |
| |||
1122 | 1132 | | |
1123 | 1133 | | |
1124 | 1134 | | |
1125 | | - | |
| 1135 | + | |
| 1136 | + | |
1126 | 1137 | | |
1127 | | - | |
| 1138 | + | |
1128 | 1139 | | |
1129 | 1140 | | |
1130 | 1141 | | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | 1142 | | |
1139 | 1143 | | |
1140 | 1144 | | |
1141 | 1145 | | |
1142 | | - | |
| 1146 | + | |
1143 | 1147 | | |
1144 | | - | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
1145 | 1157 | | |
1146 | 1158 | | |
1147 | 1159 | | |
1148 | | - | |
| 1160 | + | |
1149 | 1161 | | |
1150 | 1162 | | |
1151 | 1163 | | |
| |||
1154 | 1166 | | |
1155 | 1167 | | |
1156 | 1168 | | |
1157 | | - | |
| 1169 | + | |
1158 | 1170 | | |
1159 | 1171 | | |
1160 | 1172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
500 | | - | |
| 499 | + | |
501 | 500 | | |
502 | 501 | | |
503 | 502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
512 | | - | |
| 512 | + | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments