Commit 6d50966
deps: V8: cherry-pick 94e8282325a1
Original commit message:
[symbol-as-weakmap-key] Fix DCHECKs and add CanBeHeldWeakly
There are a few DCHECKs that weren't updated to allow for Symbols as
weak collection keys. This CL updates those DCHECKs and also does the
following refactors for clarity:
- Add Object::CanBeHeldWeakly
- Rename GotoIfCannotBeWeakKey -> GotoIfCannotBeHeldWeakly to align with
spec AO name
Bug: chromium:1370400, chromium:1370402, v8:12947
Change-Id: I380840c8377497feae97e3fca37555dae0dcc255
Fixed: chromium:1370400, chromium:1370402
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3928150
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Marja Hölttä <marja@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83507}
Refs: v8/v8@94e8282
PR-URL: #51004
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent fafbacd commit 6d50966Copy full SHA for 6d50966
File tree
Expand file treeCollapse file tree
13 files changed
+66
-62
lines changedOpen diff view settings
Filter options
- deps/v8
- src
- builtins
- diagnostics
- objects
- runtime
- test/mjsunit/harmony
Expand file treeCollapse file tree
13 files changed
+66
-62
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
41 | 41 | |
42 | 42 | |
|
Collapse file
deps/v8/src/builtins/builtins-collections-gen.cc
Copy file name to clipboardExpand all lines: deps/v8/src/builtins/builtins-collections-gen.cc+19-19Lines changed: 19 additions & 19 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
399 | 399 | |
400 | 400 | |
401 | 401 | |
402 | | - |
403 | | - |
| 402 | + |
| 403 | + |
404 | 404 | |
405 | 405 | |
406 | | - |
| 406 | + |
407 | 407 | |
408 | 408 | |
409 | 409 | |
410 | 410 | |
411 | | - |
| 411 | + |
412 | 412 | |
413 | 413 | |
414 | | - |
415 | | - |
| 414 | + |
| 415 | + |
416 | 416 | |
417 | 417 | |
418 | | - |
| 418 | + |
419 | 419 | |
420 | 420 | |
421 | 421 | |
| ||
2573 | 2573 | |
2574 | 2574 | |
2575 | 2575 | |
2576 | | - |
| 2576 | + |
2577 | 2577 | |
2578 | | - |
| 2578 | + |
2579 | 2579 | |
2580 | | - |
| 2580 | + |
2581 | 2581 | |
2582 | 2582 | |
2583 | | - |
| 2583 | + |
2584 | 2584 | |
2585 | 2585 | |
2586 | | - |
| 2586 | + |
2587 | 2587 | |
2588 | 2588 | |
2589 | 2589 | |
| ||
2638 | 2638 | |
2639 | 2639 | |
2640 | 2640 | |
2641 | | - |
| 2641 | + |
2642 | 2642 | |
2643 | | - |
| 2643 | + |
2644 | 2644 | |
2645 | | - |
| 2645 | + |
2646 | 2646 | |
2647 | 2647 | |
2648 | 2648 | |
2649 | | - |
| 2649 | + |
2650 | 2650 | |
2651 | 2651 | |
2652 | 2652 | |
2653 | 2653 | |
2654 | 2654 | |
2655 | 2655 | |
2656 | | - |
| 2656 | + |
2657 | 2657 | |
2658 | 2658 | |
2659 | 2659 | |
| ||
2735 | 2735 | |
2736 | 2736 | |
2737 | 2737 | |
2738 | | - |
| 2738 | + |
2739 | 2739 | |
2740 | 2740 | |
2741 | 2741 | |
| ||
2753 | 2753 | |
2754 | 2754 | |
2755 | 2755 | |
2756 | | - |
| 2756 | + |
2757 | 2757 | |
2758 | 2758 | |
2759 | 2759 | |
|
Collapse file
deps/v8/src/builtins/builtins-collections-gen.h
Copy file name to clipboardExpand all lines: deps/v8/src/builtins/builtins-collections-gen.h+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
31 | | - |
| 30 | + |
| 31 | + |
32 | 32 | |
33 | 33 | |
34 | 34 | |
|
Collapse file
deps/v8/src/builtins/builtins-weak-refs.cc
Copy file name to clipboardExpand all lines: deps/v8/src/builtins/builtins-weak-refs.cc+4-17Lines changed: 4 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
47 | 34 | |
48 | 35 | |
49 | 36 | |
|
Collapse file
deps/v8/src/builtins/finalization-registry.tq
Copy file name to clipboardExpand all lines: deps/v8/src/builtins/finalization-registry.tq+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
20 | 20 | |
21 | 21 | |
22 | 22 | |
| ||
140 | 140 | |
141 | 141 | |
142 | 142 | |
143 | | - |
| 143 | + |
144 | 144 | |
145 | 145 | |
146 | 146 | |
| ||
159 | 159 | |
160 | 160 | |
161 | 161 | |
162 | | - |
| 162 | + |
163 | 163 | |
164 | 164 | |
165 | 165 | |
|
Collapse file
deps/v8/src/builtins/weak-ref.tq
Copy file name to clipboardExpand all lines: deps/v8/src/builtins/weak-ref.tq+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
| 27 | + |
28 | 28 | |
29 | 29 | |
30 | 30 | |
|
Collapse file
deps/v8/src/diagnostics/objects-debug.cc
Copy file name to clipboardExpand all lines: deps/v8/src/diagnostics/objects-debug.cc+2-6Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1240 | 1240 | |
1241 | 1241 | |
1242 | 1242 | |
1243 | | - |
1244 | | - |
1245 | | - |
| 1243 | + |
1246 | 1244 | |
1247 | 1245 | |
1248 | 1246 | |
| ||
1270 | 1268 | |
1271 | 1269 | |
1272 | 1270 | |
1273 | | - |
1274 | | - |
1275 | | - |
| 1271 | + |
1276 | 1272 | |
1277 | 1273 | |
1278 | 1274 | |
|
Collapse file
deps/v8/src/objects/js-weak-refs-inl.h
Copy file name to clipboardExpand all lines: deps/v8/src/objects/js-weak-refs-inl.h+2-4Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
170 | 170 | |
171 | 171 | |
172 | 172 | |
173 | | - |
174 | | - |
175 | | - |
| 173 | + |
176 | 174 | |
177 | 175 | |
178 | 176 | |
| ||
218 | 216 | |
219 | 217 | |
220 | 218 | |
221 | | - |
| 219 | + |
222 | 220 | |
223 | 221 | |
224 | 222 | |
|
Collapse file
deps/v8/src/objects/objects-inl.h
Copy file name to clipboardExpand all lines: deps/v8/src/objects/objects-inl.h+17Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1206 | 1206 | |
1207 | 1207 | |
1208 | 1208 | |
| 1209 | + |
| 1210 | + |
| 1211 | + |
| 1212 | + |
| 1213 | + |
| 1214 | + |
| 1215 | + |
| 1216 | + |
| 1217 | + |
| 1218 | + |
| 1219 | + |
| 1220 | + |
| 1221 | + |
| 1222 | + |
| 1223 | + |
| 1224 | + |
| 1225 | + |
1209 | 1226 | |
1210 | 1227 | |
1211 | 1228 | |
|
Collapse file
deps/v8/src/objects/objects.h
Copy file name to clipboardExpand all lines: deps/v8/src/objects/objects.h+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
770 | 770 | |
771 | 771 | |
772 | 772 | |
| 773 | + |
| 774 | + |
| 775 | + |
| 776 | + |
| 777 | + |
773 | 778 | |
774 | 779 | |
775 | 780 | |
|
0 commit comments