Changeset 240448 in webkit


Ignore:
Timestamp:
Jan 24, 2019 2:07:33 PM (5 years ago)
Author:
sbarati@apple.com
Message:

Update ARM64EHash
https://bugs.webkit.org/show_bug.cgi?id=193776
<rdar://problem/47526457>

Reviewed by Mark Lam.

See radar for details.

  • assembler/AssemblerBuffer.h:

(JSC::ARM64EHash::update):
(JSC::ARM64EHash::finalHash const):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r240447 r240448  
     12019-01-24  Saam Barati  <sbarati@apple.com>
     2
     3        Update ARM64EHash
     4        https://bugs.webkit.org/show_bug.cgi?id=193776
     5        <rdar://problem/47526457>
     6
     7        Reviewed by Mark Lam.
     8
     9        See radar for details.
     10
     11        * assembler/AssemblerBuffer.h:
     12        (JSC::ARM64EHash::update):
     13        (JSC::ARM64EHash::finalHash const):
     14
    1152019-01-24  Saam Barati  <sbarati@apple.com>
    216
  • trunk/Source/JavaScriptCore/assembler/AssemblerBuffer.h

    r239364 r240448  
    156156            uint64_t a = static_cast<uint32_t>(tagInt(input, static_cast<PtrTag>(0)) >> 39);
    157157            uint64_t b = tagInt(input, static_cast<PtrTag>(0xb7e151628aed2a6a)) >> 23;
    158             m_hash = a | b;
     158            m_hash = a ^ b;
    159159        }
    160160        uint32_t finalHash() const
     
    163163            uint64_t a = static_cast<uint32_t>(tagInt(hash, static_cast<PtrTag>(0xbf7158809cf4f3c7)) >> 39);
    164164            uint64_t b = tagInt(hash, static_cast<PtrTag>(0x62e7160f38b4da56)) >> 23;
    165             return static_cast<uint32_t>(a | b);
     165            return static_cast<uint32_t>(a ^ b);
    166166        }
    167167    private:
Note: See TracChangeset for help on using the changeset viewer.