Changeset 252021 in webkit for trunk/Source/JavaScriptCore/llint/LLIntData.cpp
- Timestamp:
- Nov 4, 2019, 3:47:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llint/LLIntData.cpp
r252015 r252021 148 148 149 149 { 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()); 154 156 } 155 157 { 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(); 165 160 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()); 169 164 } 170 165 { 171 BinaryArithProfile arithProfile;166 ArithProfile arithProfile; 172 167 arithProfile.lhsSawNumber(); 173 arithProfile.rhsSaw Int32();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()); 177 172 } 178 173 { 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; 188 175 arithProfile.lhsSawInt32(); 189 176 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()); 193 180 } 194 181 }
Note:
See TracChangeset
for help on using the changeset viewer.