Changeset 237793 in webkit
- Timestamp:
- Nov 5, 2018 1:34:01 AM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r237764 r237793 1 2018-11-05 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [Win][Clang][JSC] JIT::is64BitType reports "warning: explicit specialization cannot have a storage class" 4 https://bugs.webkit.org/show_bug.cgi?id=191146 5 6 Reviewed by Yusuke Suzuki. 7 8 * jit/JIT.h: Changed is64BitType from a template class method to a 9 template inner class. 10 1 11 2018-11-02 Keith Miller <keith_miller@apple.com> 2 12 -
trunk/Source/JavaScriptCore/jit/JIT.h
r237547 r237793 782 782 783 783 template<typename Type> 784 static constexpr bool is64BitType() { return sizeof(Type) <= 8; } 784 struct is64BitType { 785 static constexpr bool value = sizeof(Type) <= 8; 786 }; 785 787 786 788 template<> 787 static constexpr bool is64BitType<void>() { return true; } 789 struct is64BitType<void> { 790 static constexpr bool value = true; 791 }; 788 792 789 793 template<typename OperationType, typename... Args> … … 791 795 callOperation(OperationType operation, Args... args) 792 796 { 793 static_assert(is64BitType<typename FunctionTraits<OperationType>::ResultType> (), "Win64 cannot use standard call when return type is larger than 64 bits.");797 static_assert(is64BitType<typename FunctionTraits<OperationType>::ResultType>::value, "Win64 cannot use standard call when return type is larger than 64 bits."); 794 798 setupArguments<OperationType>(args...); 795 799 return appendCallWithExceptionCheck(operation);
Note: See TracChangeset
for help on using the changeset viewer.