Changeset 237793 in webkit


Ignore:
Timestamp:
Nov 5, 2018 1:34:01 AM (5 years ago)
Author:
Fujii Hironori
Message:

[Win][Clang][JSC] JIT::is64BitType reports "warning: explicit specialization cannot have a storage class"
https://bugs.webkit.org/show_bug.cgi?id=191146

Reviewed by Yusuke Suzuki.

  • jit/JIT.h: Changed is64BitType from a template class method to a

template inner class.

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r237764 r237793  
     12018-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
    1112018-11-02  Keith Miller  <keith_miller@apple.com>
    212
  • trunk/Source/JavaScriptCore/jit/JIT.h

    r237547 r237793  
    782782
    783783        template<typename Type>
    784         static constexpr bool is64BitType() { return sizeof(Type) <= 8; }
     784        struct is64BitType {
     785            static constexpr bool value = sizeof(Type) <= 8;
     786        };
    785787
    786788        template<>
    787         static constexpr bool is64BitType<void>() { return true; }
     789        struct is64BitType<void> {
     790            static constexpr bool value = true;
     791        };
    788792
    789793        template<typename OperationType, typename... Args>
     
    791795        callOperation(OperationType operation, Args... args)
    792796        {
    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.");
    794798            setupArguments<OperationType>(args...);
    795799            return appendCallWithExceptionCheck(operation);
Note: See TracChangeset for help on using the changeset viewer.