Ignore:
Timestamp:
Oct 14, 2019, 3:52:11 PM (6 years ago)
Author:
[email protected]
Message:

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

"broke tests" (Requested by RMorisset on #webkit).

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/251090

File:
1 edited

Legend:

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

    r251090 r251106  
    136136
    137137    {
    138         UnaryArithProfile arithProfile;
    139         arithProfile.argSawInt32();
    140         ASSERT(arithProfile.bits() == UnaryArithProfile::observedIntBits());
    141         ASSERT(arithProfile.argObservedType().isOnlyInt32());
     138        ArithProfile arithProfile;
     139        arithProfile.lhsSawInt32();
     140        arithProfile.rhsSawInt32();
     141        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntInt().bits());
     142        STATIC_ASSERT(ArithProfile::observedBinaryIntInt().lhsObservedType().isOnlyInt32());
     143        STATIC_ASSERT(ArithProfile::observedBinaryIntInt().rhsObservedType().isOnlyInt32());
    142144    }
    143145    {
    144         UnaryArithProfile arithProfile;
    145         arithProfile.argSawNumber();
    146         ASSERT(arithProfile.bits() == UnaryArithProfile::observedNumberBits());
    147         ASSERT(arithProfile.argObservedType().isOnlyNumber());
    148     }
    149 
    150     {
    151         BinaryArithProfile arithProfile;
    152         arithProfile.lhsSawInt32();
     146        ArithProfile arithProfile;
     147        arithProfile.lhsSawNumber();
    153148        arithProfile.rhsSawInt32();
    154         ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntIntBits());
    155         ASSERT(arithProfile.lhsObservedType().isOnlyInt32());
    156         ASSERT(arithProfile.rhsObservedType().isOnlyInt32());
     149        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberInt().bits());
     150        STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().lhsObservedType().isOnlyNumber());
     151        STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().rhsObservedType().isOnlyInt32());
    157152    }
    158153    {
    159         BinaryArithProfile arithProfile;
     154        ArithProfile arithProfile;
    160155        arithProfile.lhsSawNumber();
    161         arithProfile.rhsSawInt32();
    162         ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberIntBits());
    163         ASSERT(arithProfile.lhsObservedType().isOnlyNumber());
    164         ASSERT(arithProfile.rhsObservedType().isOnlyInt32());
     156        arithProfile.rhsSawNumber();
     157        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberNumber().bits());
     158        STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().lhsObservedType().isOnlyNumber());
     159        STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().rhsObservedType().isOnlyNumber());
    165160    }
    166161    {
    167         BinaryArithProfile arithProfile;
    168         arithProfile.lhsSawNumber();
    169         arithProfile.rhsSawNumber();
    170         ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberNumberBits());
    171         ASSERT(arithProfile.lhsObservedType().isOnlyNumber());
    172         ASSERT(arithProfile.rhsObservedType().isOnlyNumber());
    173     }
    174     {
    175         BinaryArithProfile arithProfile;
     162        ArithProfile arithProfile;
    176163        arithProfile.lhsSawInt32();
    177164        arithProfile.rhsSawNumber();
    178         ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntNumberBits());
    179         ASSERT(arithProfile.lhsObservedType().isOnlyInt32());
    180         ASSERT(arithProfile.rhsObservedType().isOnlyNumber());
     165        ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntNumber().bits());
     166        STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().lhsObservedType().isOnlyInt32());
     167        STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().rhsObservedType().isOnlyNumber());
    181168    }
    182169}
Note: See TracChangeset for help on using the changeset viewer.