Changeset 252949 in webkit


Ignore:
Timestamp:
Nov 29, 2019 11:03:34 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Use default implementation for JSVALUE64 with GCC on unknown platform.
https://bugs.webkit.org/show_bug.cgi?id=204701

Building on ppc64le and s390x failed with
#error "Unknown architecture."
Use the default implementation as fallback in these cases.

Patch by Eike Rathke <erack@redhat.com> on 2019-11-29
Reviewed by Saam Barati.

  • heap/GCMemoryOperations.h:

(JSC::gcSafeMemcpy):
(JSC::gcSafeMemmove):
(JSC::gcSafeZeroMemory):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r252936 r252949  
     12019-11-29  Eike Rathke  <erack@redhat.com>
     2
     3        Use default implementation for JSVALUE64 with GCC on unknown platform.
     4        https://bugs.webkit.org/show_bug.cgi?id=204701
     5
     6        Building on ppc64le and s390x failed with
     7        #error "Unknown architecture."
     8        Use the default implementation as fallback in these cases.
     9
     10        Reviewed by Saam Barati.
     11
     12        * heap/GCMemoryOperations.h:
     13        (JSC::gcSafeMemcpy):
     14        (JSC::gcSafeMemmove):
     15        (JSC::gcSafeZeroMemory):
     16
    1172019-11-28  Fujii Hironori  <Hironori.Fujii@sony.com>
    218
  • trunk/Source/JavaScriptCore/heap/GCMemoryOperations.h

    r252479 r252949  
    123123        );
    124124#else
    125 #error "Unknown architecture."
     125    slowPathForwardMemcpy();
    126126#endif // CPU(X86_64)
    127127    } else {
     
    239239        );
    240240#else
    241 #error "Unknown architecture."
     241        slowPathBackwardsMemmove();
    242242#endif // CPU(X86_64)
    243243    }
     
    297297    );
    298298#else
    299 #error "Unknown architecture."
     299    size_t count = bytes / 8;
     300    for (size_t i = 0; i < count; ++i)
     301        bitwise_cast<volatile uint64_t*>(dst)[i] = 0;
    300302#endif // CPU(X86_64)
    301303#else
Note: See TracChangeset for help on using the changeset viewer.