Changeset 252949 in webkit for trunk/Source/JavaScriptCore/heap


Ignore:
Timestamp:
Nov 29, 2019, 11:03:34 AM (5 years ago)
Author:
[email protected]
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 <[email protected]> on 2019-11-29
Reviewed by Saam Barati.

  • heap/GCMemoryOperations.h:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.