Commit 885a1ba
[maglev] add missing arg type check for string.prototype.startsWith
js-call-reducer only reduces string argument[1] but maglev consumes
unsupported type like regexp. hence, we should check it and stop reduce
if it is not valid type.
[1] https://source.chromium.org/chromium/chromium/src/+/main:v8/src/compiler/js-call-reducer.cc;l=6995?q=src%2Fcompiler%2Fjs-call-reducer.cc
Bug: 442086665
Change-Id: Ifadaa7008257df3fff61e3569489fc7033171a7c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6905506
Auto-Submit: Seokho Song <[email protected]>
Commit-Queue: Seokho Song <[email protected]>
Reviewed-by: Victor Gomes <[email protected]>
Cr-Commit-Position: refs/heads/main@{#102173}1 parent df61520 commit 885a1ba
File tree
2 files changed
+27
-2
lines changed- src/maglev
- test/mjsunit/maglev
2 files changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9298 | 9298 | | |
9299 | 9299 | | |
9300 | 9300 | | |
9301 | | - | |
| 9301 | + | |
9302 | 9302 | | |
9303 | | - | |
| 9303 | + | |
| 9304 | + | |
| 9305 | + | |
| 9306 | + | |
| 9307 | + | |
| 9308 | + | |
9304 | 9309 | | |
9305 | 9310 | | |
9306 | 9311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments