Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[vm] Only call
.hashCode
once when adding to Map
and Set
"
This reverts commit 438c1ed. Reason for revert: b/231617607 and b/230945329. Will reland after b/230945329 is addressed. Original change's description: > [vm] Only call `.hashCode` once when adding to `Map` and `Set` > > The methods to add to hash maps and hash sets are recursive: if the > index needs to be rehashed then the same method is called again after > rehashing. > > This CL nests the actual implementation in a private method that takes > the full hashCode as an extra argument. > > No significant code size or run time changes are reported on our > benchmarks. (Our benchmarks do not contain purposefully slow hashCodes.) > > Note that hashCode can be called again later if rehashing of the index > is required on adding subsequent elements. > > Bug: #48948 > Change-Id: Ia3ccff9e592d675b4922ac78c4aa7ee0287ecb50 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243623 > Reviewed-by: Martin Kustermann <kustermann@google.com> > Commit-Queue: Daco Harkes <dacoharkes@google.com> TBR=kustermann@google.com,dacoharkes@google.com Change-Id: I214251b65ea89e7f729564a125e226f2e6d580c0 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: #48948 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243900 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
- Loading branch information