Changeset 252021 in webkit for trunk/Source/JavaScriptCore/bytecode/Fits.h
- Timestamp:
- Nov 4, 2019, 3:47:07 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/Fits.h
r252015 r252021 238 238 239 239 template<OpcodeSize size> 240 struct Fits<ResultType, size, std::enable_if_t<sizeof(ResultType) != size, std::true_type>> : public Fits<uint8_t, size> {241 static_assert(sizeof(ResultType) == sizeof(uint8_t));242 using Base = Fits<uint8_t, size>;243 244 static bool check(ResultType type) { return Base::check(type.bits()); }245 246 static typename Base::TargetType convert(ResultType type) { return Base::convert(type.bits()); }247 248 static ResultType convert(typename Base::TargetType type) { return ResultType(Base::convert(type)); }249 };250 251 template<OpcodeSize size>252 240 struct Fits<OperandTypes, size, std::enable_if_t<sizeof(OperandTypes) != size, std::true_type>> { 253 241 static_assert(sizeof(OperandTypes) == sizeof(uint16_t));
Note:
See TracChangeset
for help on using the changeset viewer.