Changeset 238386 in webkit


Ignore:
Timestamp:
Nov 19, 2018 5:37:44 PM (5 years ago)
Author:
Fujii Hironori
Message:

[MSVC] X86Assembler.h(108): error C2666: 'WebCore::operator -': 7 overloads have similar conversions
https://bugs.webkit.org/show_bug.cgi?id=189467
<rdar://problem/44290945>

Reviewed by Mark Lam.

This issue has happened several times. And, it seems that it will
take more time for Microsoft to fix the MSVC bug. We need a
effective workaround not to repeat this issue until they fix MSVC.

Remove ": int8_t" of RegisterID only for COMPILER(MSVC).

  • assembler/X86Assembler.h: Added JSC_X86_ASM_REGISTER_ID_ENUM_BASE_TYPE macro.
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r238376 r238386  
     12018-11-19  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [MSVC] X86Assembler.h(108): error C2666: 'WebCore::operator -': 7 overloads have similar conversions
     4        https://bugs.webkit.org/show_bug.cgi?id=189467
     5        <rdar://problem/44290945>
     6
     7        Reviewed by Mark Lam.
     8
     9        This issue has happened several times. And, it seems that it will
     10        take more time for Microsoft to fix the MSVC bug. We need a
     11        effective workaround not to repeat this issue until they fix MSVC.
     12
     13        Remove ": int8_t" of RegisterID only for COMPILER(MSVC).
     14
     15        * assembler/X86Assembler.h: Added JSC_X86_ASM_REGISTER_ID_ENUM_BASE_TYPE macro.
     16
    1172018-11-19  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
    218
  • trunk/Source/JavaScriptCore/assembler/X86Assembler.h

    r236589 r238386  
    4242namespace X86Registers {
    4343
    44 typedef enum : int8_t {
     44#if COMPILER(MSVC)
     45#define JSC_X86_ASM_REGISTER_ID_ENUM_BASE_TYPE
     46#else
     47#define JSC_X86_ASM_REGISTER_ID_ENUM_BASE_TYPE : int8_t
     48#endif
     49
     50typedef enum JSC_X86_ASM_REGISTER_ID_ENUM_BASE_TYPE {
    4551    eax,
    4652    ecx,
     
    6470} RegisterID;
    6571
    66 typedef enum : int8_t {
     72typedef enum JSC_X86_ASM_REGISTER_ID_ENUM_BASE_TYPE {
    6773    eip,
    6874    eflags
    6975} SPRegisterID;
    7076
    71 typedef enum : int8_t {
     77typedef enum JSC_X86_ASM_REGISTER_ID_ENUM_BASE_TYPE {
    7278    xmm0,
    7379    xmm1,
Note: See TracChangeset for help on using the changeset viewer.