Changeset 251090 in webkit for trunk/Source/JavaScriptCore/llint/LLIntData.cpp
- Timestamp:
- Oct 14, 2019, 1:28:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llint/LLIntData.cpp
r250094 r251090 136 136 137 137 { 138 ArithProfile arithProfile; 138 UnaryArithProfile arithProfile; 139 arithProfile.argSawInt32(); 140 ASSERT(arithProfile.bits() == UnaryArithProfile::observedIntBits()); 141 ASSERT(arithProfile.argObservedType().isOnlyInt32()); 142 } 143 { 144 UnaryArithProfile arithProfile; 145 arithProfile.argSawNumber(); 146 ASSERT(arithProfile.bits() == UnaryArithProfile::observedNumberBits()); 147 ASSERT(arithProfile.argObservedType().isOnlyNumber()); 148 } 149 150 { 151 BinaryArithProfile arithProfile; 139 152 arithProfile.lhsSawInt32(); 140 153 arithProfile.rhsSawInt32(); 141 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntInt().bits());142 STATIC_ASSERT(ArithProfile::observedBinaryIntInt().lhsObservedType().isOnlyInt32());143 STATIC_ASSERT(ArithProfile::observedBinaryIntInt().rhsObservedType().isOnlyInt32());154 ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntIntBits()); 155 ASSERT(arithProfile.lhsObservedType().isOnlyInt32()); 156 ASSERT(arithProfile.rhsObservedType().isOnlyInt32()); 144 157 } 145 158 { 146 ArithProfile arithProfile;159 BinaryArithProfile arithProfile; 147 160 arithProfile.lhsSawNumber(); 148 161 arithProfile.rhsSawInt32(); 149 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberInt().bits());150 STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().lhsObservedType().isOnlyNumber());151 STATIC_ASSERT(ArithProfile::observedBinaryNumberInt().rhsObservedType().isOnlyInt32());162 ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberIntBits()); 163 ASSERT(arithProfile.lhsObservedType().isOnlyNumber()); 164 ASSERT(arithProfile.rhsObservedType().isOnlyInt32()); 152 165 } 153 166 { 154 ArithProfile arithProfile;167 BinaryArithProfile arithProfile; 155 168 arithProfile.lhsSawNumber(); 156 169 arithProfile.rhsSawNumber(); 157 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryNumberNumber().bits());158 STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().lhsObservedType().isOnlyNumber());159 STATIC_ASSERT(ArithProfile::observedBinaryNumberNumber().rhsObservedType().isOnlyNumber());170 ASSERT(arithProfile.bits() == BinaryArithProfile::observedNumberNumberBits()); 171 ASSERT(arithProfile.lhsObservedType().isOnlyNumber()); 172 ASSERT(arithProfile.rhsObservedType().isOnlyNumber()); 160 173 } 161 174 { 162 ArithProfile arithProfile;175 BinaryArithProfile arithProfile; 163 176 arithProfile.lhsSawInt32(); 164 177 arithProfile.rhsSawNumber(); 165 ASSERT(arithProfile.bits() == ArithProfile::observedBinaryIntNumber().bits());166 STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().lhsObservedType().isOnlyInt32());167 STATIC_ASSERT(ArithProfile::observedBinaryIntNumber().rhsObservedType().isOnlyNumber());178 ASSERT(arithProfile.bits() == BinaryArithProfile::observedIntNumberBits()); 179 ASSERT(arithProfile.lhsObservedType().isOnlyInt32()); 180 ASSERT(arithProfile.rhsObservedType().isOnlyNumber()); 168 181 } 169 182 }
Note:
See TracChangeset
for help on using the changeset viewer.