Changeset 233504 in webkit
- Timestamp:
- Jul 4, 2018 5:54:48 AM (6 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r233501 r233504 1 2018-07-04 Guillaume Emont <guijemont@igalia.com> 2 3 FunctionTraits: Make cCallArity() constant on 32-bits. 4 https://bugs.webkit.org/show_bug.cgi?id=187292 5 6 Reviewed by Yusuke Suzuki. 7 8 On X86, in Source/JavaScriptCore/jit/CCallHelpers.h we have a 9 static_assert that uses cCallArity(), so it needs to be constant to 10 avoid a compilation error. This is achieved by changing an ASSERT into 11 a static_assert. 12 13 14 * wtf/FunctionTraits.h: 15 (WTF::slotsForCCallArgument): 16 1 17 2018-07-04 Tim Horton <timothy_horton@apple.com> 2 18 -
trunk/Source/WTF/wtf/FunctionTraits.h
r229391 r233504 39 39 { 40 40 static_assert(!std::is_class<T>::value || sizeof(T) <= sizeof(void*), "This doesn't support complex structs."); 41 static_assert(sizeof(T) == 8 || sizeof(T) <= 4, ""); 41 42 // This assumes that all integral values are passed on the stack. 42 43 if (sizeof(T) == 8) 43 44 return 2; 44 45 45 ASSERT(sizeof(T) <= 4);46 46 return 1; 47 47 }
Note: See TracChangeset
for help on using the changeset viewer.