• pthier's avatar
    Use map of prototype in Map::Hash. · ae882321
    pthier authored
    Instead of using addresses of prototype and constructor (which can be
    movedby GC) when computing the hash of a Map, we use the addresses of the
    prototype map (which won't be compacted).
    The prototype map is in a 1:1 relation with the prototype.
    In addition the prototype points to the constructor in most cases.
    
    Bug: v8:11519
    Change-Id: Ibc47e5870955d7721509be07fae7719a93da9a26
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2739646
    Commit-Queue: Patrick Thier <pthier@chromium.org>
    Auto-Submit: Patrick Thier <pthier@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#73286}
    ae882321
regress-11519.js 663 Bytes