Changeset 235021 in webkit


Ignore:
Timestamp:
Aug 19, 2018 5:24:47 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r234852.
https://bugs.webkit.org/show_bug.cgi?id=188736

Workaround is not correct (Requested by yusukesuzuki on
#webkit).

Reverted changeset:

"[JSC] Should not rotate constant with 64"
https://bugs.webkit.org/show_bug.cgi?id=188556
https://trac.webkit.org/changeset/234852

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r235018 r235021  
     12018-08-19  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r234852.
     4        https://bugs.webkit.org/show_bug.cgi?id=188736
     5
     6        Workaround is not correct (Requested by yusukesuzuki on
     7        #webkit).
     8
     9        Reverted changeset:
     10
     11        "[JSC] Should not rotate constant with 64"
     12        https://bugs.webkit.org/show_bug.cgi?id=188556
     13        https://trac.webkit.org/changeset/234852
     14
    1152018-08-19  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
    216
  • trunk/Source/JavaScriptCore/assembler/MacroAssembler.h

    r234984 r235021  
    12911291        return shouldBlindPointerForSpecificArch(value);
    12921292    }
    1293 
    1294     uint8_t generateRotationSeed(size_t widthInBits)
    1295     {
    1296         // Generate the seed in [0, widthInBits). We should not generate widthInBits
    1297         // since it leads to `<< widthInBits`, which is an undefined behavior.
    1298         return random() % (widthInBits - 1);
    1299     }
    13001293   
    13011294    struct RotatedImmPtr {
     
    13111304    RotatedImmPtr rotationBlindConstant(ImmPtr imm)
    13121305    {
    1313         uint8_t rotation = generateRotationSeed(sizeof(void*) * 8);
     1306        uint8_t rotation = random() % (sizeof(void*) * 8);
    13141307        uintptr_t value = imm.asTrustedImmPtr().asIntptr();
    13151308        value = (value << rotation) | (value >> (sizeof(void*) * 8 - rotation));
     
    13791372    RotatedImm64 rotationBlindConstant(Imm64 imm)
    13801373    {
    1381         uint8_t rotation = generateRotationSeed(sizeof(int64_t) * 8);
     1374        uint8_t rotation = random() % (sizeof(int64_t) * 8);
    13821375        uint64_t value = imm.asTrustedImm64().m_value;
    13831376        value = (value << rotation) | (value >> (sizeof(int64_t) * 8 - rotation));
Note: See TracChangeset for help on using the changeset viewer.