Changeset 252015 in webkit for trunk/Source/JavaScriptCore/llint/LLIntData.cpp
- Timestamp:
- Nov 4, 2019, 2:20:37 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llint/LLIntData.cpp
r251886 r252015 148 148 149 149 { 150 ArithProfile arithProfile; 150 UnaryArithProfile arithProfile; 151 arithProfile.argSawInt32(); 152 ASSERT(arithProfile.bits() == UnaryArithProfile::observedIntBits()); 153 ASSERT(arithProfile.argObservedType().isOnlyInt32()); 154 } 155 { 156 UnaryArithProfile arithProfile; 157 arithProfile.argSawNumber(); 158 ASSERT(arithProfile.bits() == UnaryArithProfile::observedNumberBits()); 159 ASSERT(arithProfile.argObservedType().isOnlyNumber()); 160 } 161 162 { 163 BinaryArithProfile arithProfile; 151 164 arithProfile.lhsSawInt32(); 152 165 arithProfile.rhsSawInt32(); 153 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntInt().bits());154 STATIC_ASSERT(ArithProfile::observedBinaryIntInt().lhsObservedType().isOnlyInt32());155 STATIC_ASSERT(ArithProfile::observedBinaryIntInt().rhsObservedType().isOnlyInt32());166 ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntIntBits()); 167 ASSERT(arithProfile.lhsObservedType().isOnlyInt32()); 168 ASSERT(arithProfile.rhsObservedType().isOnlyInt32()); 156 169 } 157 170 { 158 ArithProfile arithProfile;171 BinaryArithProfile arithProfile; 159 172 arithProfile.lhsSawNumber(); 160 173 arithProfile.rhsSawInt32(); 161 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberInt().bits());162 STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().lhsObservedType().isOnlyNumber());163 STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().rhsObservedType().isOnlyInt32());174 ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberIntBits()); 175 ASSERT(arithProfile.lhsObservedType().isOnlyNumber()); 176 ASSERT(arithProfile.rhsObservedType().isOnlyInt32()); 164 177 } 165 178 { 166 ArithProfile arithProfile;179 BinaryArithProfile arithProfile; 167 180 arithProfile.lhsSawNumber(); 168 181 arithProfile.rhsSawNumber(); 169 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberNumber().bits());170 STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().lhsObservedType().isOnlyNumber());171 STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().rhsObservedType().isOnlyNumber());182 ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberNumberBits()); 183 ASSERT(arithProfile.lhsObservedType().isOnlyNumber()); 184 ASSERT(arithProfile.rhsObservedType().isOnlyNumber()); 172 185 } 173 186 { 174 ArithProfile arithProfile;187 BinaryArithProfile arithProfile; 175 188 arithProfile.lhsSawInt32(); 176 189 arithProfile.rhsSawNumber(); 177 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntNumber().bits());178 STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().lhsObservedType().isOnlyInt32());179 STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().rhsObservedType().isOnlyNumber());190 ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntNumberBits()); 191 ASSERT(arithProfile.lhsObservedType().isOnlyInt32()); 192 ASSERT(arithProfile.rhsObservedType().isOnlyNumber()); 180 193 } 181 194 }
Note:
See TracChangeset
for help on using the changeset viewer.