Ignore:
Timestamp:
Nov 4, 2019, 3:47:07 PM (6 years ago)
Author:
Truitt Savell
Message:

Unreviewed, rolling out r252015.

Broke the Windows build

Reverted changeset:

"Split ArithProfile into a Unary and a Binary version"
https://bugs.webkit.org/show_bug.cgi?id=202832
https://trac.webkit.org/changeset/252015

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/llint/LLIntData.cpp

    r252015 r252021  
    148148
    149149    {
    150         UnaryArithProfile arithProfile;
    151         arithProfile.argSawInt32();
    152         ASSERT(arithProfile.bits() == UnaryArithProfile::observedIntBits());
    153         ASSERT(arithProfile.argObservedType().isOnlyInt32());
     150        ArithProfile arithProfile;
     151        arithProfile.lhsSawInt32();
     152        arithProfile.rhsSawInt32();
     153        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntInt().bits());
     154        STATIC_ASSERT(ArithProfile::observedBinaryIntInt().lhsObservedType().isOnlyInt32());
     155        STATIC_ASSERT(ArithProfile::observedBinaryIntInt().rhsObservedType().isOnlyInt32());
    154156    }
    155157    {
    156         UnaryArithProfile arithProfile;
    157         arithProfile.argSawNumber();
    158         ASSERT(arithProfile.bits() == UnaryArithProfile::observedNumberBits());
    159         ASSERT(arithProfile.argObservedType().isOnlyNumber());
    160     }
    161 
    162     {
    163         BinaryArithProfile arithProfile;
    164         arithProfile.lhsSawInt32();
     158        ArithProfile arithProfile;
     159        arithProfile.lhsSawNumber();
    165160        arithProfile.rhsSawInt32();
    166         ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntIntBits());
    167         ASSERT(arithProfile.lhsObservedType().isOnlyInt32());
    168         ASSERT(arithProfile.rhsObservedType().isOnlyInt32());
     161        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberInt().bits());
     162        STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().lhsObservedType().isOnlyNumber());
     163        STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().rhsObservedType().isOnlyInt32());
    169164    }
    170165    {
    171         BinaryArithProfile arithProfile;
     166        ArithProfile arithProfile;
    172167        arithProfile.lhsSawNumber();
    173         arithProfile.rhsSawInt32();
    174         ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberIntBits());
    175         ASSERT(arithProfile.lhsObservedType().isOnlyNumber());
    176         ASSERT(arithProfile.rhsObservedType().isOnlyInt32());
     168        arithProfile.rhsSawNumber();
     169        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberNumber().bits());
     170        STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().lhsObservedType().isOnlyNumber());
     171        STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().rhsObservedType().isOnlyNumber());
    177172    }
    178173    {
    179         BinaryArithProfile arithProfile;
    180         arithProfile.lhsSawNumber();
    181         arithProfile.rhsSawNumber();
    182         ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberNumberBits());
    183         ASSERT(arithProfile.lhsObservedType().isOnlyNumber());
    184         ASSERT(arithProfile.rhsObservedType().isOnlyNumber());
    185     }
    186     {
    187         BinaryArithProfile arithProfile;
     174        ArithProfile arithProfile;
    188175        arithProfile.lhsSawInt32();
    189176        arithProfile.rhsSawNumber();
    190         ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntNumberBits());
    191         ASSERT(arithProfile.lhsObservedType().isOnlyInt32());
    192         ASSERT(arithProfile.rhsObservedType().isOnlyNumber());
     177        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntNumber().bits());
     178        STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().lhsObservedType().isOnlyInt32());
     179        STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().rhsObservedType().isOnlyNumber());
    193180    }
    194181}
Note: See TracChangeset for help on using the changeset viewer.