• Clemens Backes's avatar
    [wasm] Use a consistent hash for wire bytes · 918b46af
    Clemens Backes authored
    We use a hash for different things:
    - dumping wasm module to file,
    - generating the script name, and
    - computing prefix hash / wire byte hash for caching.
    
    Two of them were using the StringHasher, one use base::hash_range.
    For experimental PGO support, we will also need a hash value, so unify
    this to use the same hash everywhere.
    Since the result of base::hash_range is platform-dependent, use the
    StringHasher everywhere.
    
    R=thibaudm@chromium.org
    
    Bug: v8:13209
    Change-Id: Iae8c2385264ecedd4daea16d7f9221bc94650eef
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3855310Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82766}
    918b46af