Changeset 254632 in webkit for trunk/Source/JavaScriptCore/b3
- Timestamp:
- Jan 15, 2020, 1:30:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/b3/testb3.h
r253896 r254632 264 264 265 265 template<typename Type> 266 struct B3Operand {266 struct Operand { 267 267 const char* name; 268 268 Type value; 269 269 }; 270 270 271 typedef B3Operand<int64_t> Int64Operand;272 typedef B3Operand<int32_t> Int32Operand;273 typedef B3Operand<int16_t> Int16Operand;274 typedef B3Operand<int8_t> Int8Operand;275 276 #define MAKE_OPERAND(value) B3Operand<decltype(value)> { #value, value }271 typedef Operand<int64_t> Int64Operand; 272 typedef Operand<int32_t> Int32Operand; 273 typedef Operand<int16_t> Int16Operand; 274 typedef Operand<int8_t> Int8Operand; 275 276 #define MAKE_OPERAND(value) Operand<decltype(value)> { #value, value } 277 277 278 278 template<typename FloatType> 279 void populateWithInterestingValues(Vector< B3Operand<FloatType>>& operands)279 void populateWithInterestingValues(Vector<Operand<FloatType>>& operands) 280 280 { 281 281 operands.append({ "0.", static_cast<FloatType>(0.) }); … … 303 303 304 304 template<typename FloatType> 305 Vector< B3Operand<FloatType>> floatingPointOperands()306 { 307 Vector< B3Operand<FloatType>> operands;305 Vector<Operand<FloatType>> floatingPointOperands() 306 { 307 Vector<Operand<FloatType>> operands; 308 308 populateWithInterestingValues(operands); 309 309 return operands;
Note:
See TracChangeset
for help on using the changeset viewer.