Changeset 251106 in webkit for trunk/Source/JavaScriptCore/llint/LLIntData.cpp
- Timestamp:
- Oct 14, 2019, 3:52:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llint/LLIntData.cpp
r251090 r251106 136 136 137 137 { 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()); 142 144 } 143 145 { 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(); 153 148 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()); 157 152 } 158 153 { 159 BinaryArithProfile arithProfile;154 ArithProfile arithProfile; 160 155 arithProfile.lhsSawNumber(); 161 arithProfile.rhsSaw Int32();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()); 165 160 } 166 161 { 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; 176 163 arithProfile.lhsSawInt32(); 177 164 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()); 181 168 } 182 169 }
Note:
See TracChangeset
for help on using the changeset viewer.