forked from v8/v8
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[set-methods] Fix symmetricDifference fast path
This CL fixes two bugs. One, propagate newly allocated OrderedHashSets to the next iteration of the loop in the fast path. Set.p.symmetricDifference can add as well as remove elements from the result OrderedHashSet. Adding elements can result in a newly allocated OrderedHashSet. Two, start counting the number of elements at the size of the receiver set instead of 0. The initial result is a copy of the receiver set. Bug: v8:13556 Change-Id: Ieac44eae38ed0592fe1e486ce1fc0824699f36ea Fixed: chromium:1470448 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4754678 Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org> Commit-Queue: Shu-yu Guo <syg@chromium.org> Cr-Commit-Position: refs/heads/main@{#89415}
- Loading branch information
Showing
2 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters