Commit cc6d54c
[compiler] Fix invalid MakeRef use in JSArrayRef::length_unsafe()
Since we are reading an Object field, it could be that the gc
predicate fails. Therefore, this CL changes to TryMakeRef, and
makes the return value of length_unsafe() optional.
Bug: v8:7790, v8:12282
Change-Id: I86a8bcc6649d5e8121e52f8947b8331fcf242887
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3200078
Reviewed-by: Jakob Gruber <[email protected]>
Commit-Queue: Michael Stanton <[email protected]>
Cr-Commit-Position: refs/heads/main@{#77209}1 parent 75c130a commit cc6d54c
2 files changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2456 | 2456 | | |
2457 | 2457 | | |
2458 | 2458 | | |
2459 | | - | |
| 2459 | + | |
| 2460 | + | |
2460 | 2461 | | |
2461 | 2462 | | |
2462 | | - | |
| 2463 | + | |
2463 | 2464 | | |
2464 | | - | |
2465 | | - | |
| 2465 | + | |
| 2466 | + | |
2466 | 2467 | | |
2467 | 2468 | | |
2468 | 2469 | | |
| |||
2491 | 2492 | | |
2492 | 2493 | | |
2493 | 2494 | | |
2494 | | - | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
2495 | 2498 | | |
2496 | 2499 | | |
2497 | | - | |
| 2500 | + | |
2498 | 2501 | | |
2499 | 2502 | | |
2500 | 2503 | | |
2501 | | - | |
| 2504 | + | |
2502 | 2505 | | |
2503 | 2506 | | |
2504 | 2507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
870 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
871 | 872 | | |
872 | 873 | | |
873 | 874 | | |
| |||
0 commit comments