Commit 3839c4a
deps: V8: cherry-pick 00f6e834029f
Original commit message:
[runtime] always sort transition arrays during rehashing
After rehashing, the arrays are no longer in hash-sorted order.
In this case, we need to force a re-sort even for small arrays,
so that subsequent linear searches can find the correct transition
and avoid inserting duplicates.
Refs: #61898 (comment)
Change-Id: Ia813d1fb9d23e08012811d672052d235c0e0bf4d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7723678
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#106255}
Refs: v8/v8@00f6e83
PR-URL: #61898
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
(cherry picked from commit 2387042)1 parent 44f64f1 commit 3839c4aCopy full SHA for 3839c4a
5 files changed
+120-6Lines changed: 120 additions & 6 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- deps/v8
- src/objects
- test/cctest
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
|
Collapse file
deps/v8/src/objects/objects.cc
Copy file name to clipboardExpand all lines: deps/v8/src/objects/objects.cc+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2281 | 2281 | |
2282 | 2282 | |
2283 | 2283 | |
2284 | | - |
| 2284 | + |
2285 | 2285 | |
2286 | 2286 | |
2287 | 2287 | |
|
Collapse file
deps/v8/src/objects/transitions.cc
Copy file name to clipboardExpand all lines: deps/v8/src/objects/transitions.cc+6-3Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
789 | 789 | |
790 | 790 | |
791 | 791 | |
792 | | - |
| 792 | + |
793 | 793 | |
794 | 794 | |
795 | 795 | |
796 | | - |
797 | | - |
| 796 | + |
| 797 | + |
| 798 | + |
| 799 | + |
| 800 | + |
798 | 801 | |
799 | 802 | |
800 | 803 | |
|
Collapse file
deps/v8/src/objects/transitions.h
Copy file name to clipboardExpand all lines: deps/v8/src/objects/transitions.h+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
341 | 341 | |
342 | 342 | |
343 | 343 | |
344 | | - |
| 344 | + |
345 | 345 | |
346 | 346 | |
347 | 347 | |
|
Collapse file
deps/v8/test/cctest/test-transitions.cc
Copy file name to clipboardExpand all lines: deps/v8/test/cctest/test-transitions.cc+111Lines changed: 111 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
464 | 464 | |
465 | 465 | |
466 | 466 | |
| 467 | + |
| 468 | + |
| 469 | + |
| 470 | + |
| 471 | + |
| 472 | + |
| 473 | + |
| 474 | + |
| 475 | + |
| 476 | + |
| 477 | + |
| 478 | + |
| 479 | + |
| 480 | + |
| 481 | + |
| 482 | + |
| 483 | + |
| 484 | + |
| 485 | + |
| 486 | + |
| 487 | + |
| 488 | + |
| 489 | + |
| 490 | + |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
| 495 | + |
| 496 | + |
| 497 | + |
| 498 | + |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
| 512 | + |
| 513 | + |
| 514 | + |
| 515 | + |
| 516 | + |
| 517 | + |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
| 528 | + |
| 529 | + |
| 530 | + |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
| 540 | + |
| 541 | + |
| 542 | + |
| 543 | + |
| 544 | + |
| 545 | + |
| 546 | + |
| 547 | + |
| 548 | + |
| 549 | + |
| 550 | + |
| 551 | + |
| 552 | + |
| 553 | + |
| 554 | + |
| 555 | + |
| 556 | + |
| 557 | + |
| 558 | + |
| 559 | + |
| 560 | + |
| 561 | + |
| 562 | + |
| 563 | + |
| 564 | + |
| 565 | + |
| 566 | + |
| 567 | + |
| 568 | + |
| 569 | + |
| 570 | + |
| 571 | + |
| 572 | + |
| 573 | + |
| 574 | + |
| 575 | + |
| 576 | + |
| 577 | + |
467 | 578 | |
468 | 579 | |
0 commit comments