Port WTF to OS(FUCHSIA)
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jun 2018 20:53:56 +0000 (20:53 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jun 2018 20:53:56 +0000 (20:53 +0000)
commitd8da9888226117fcdf9d52987d568747d833a598
tree7376cc4a738f05aec07116af9da9f5b623e0587d
parent08dd9e28b82af6f26b9b2ad123f04b8d9e6df7d7
Port WTF to OS(FUCHSIA)
https://bugs.webkit.org/show_bug.cgi?id=187221

Reviewed by Yusuke Suzuki.

* wtf/FastMalloc.cpp: Fuchsia does not have resource.h
(WTF::fastMallocStatistics): Skip collecting stats without resource.h
* wtf/InlineASM.h: Fuchsia uses ELF
* wtf/Platform.h: Define OS(FUCHSIA) as an OS(UNIX) variant
* wtf/RandomDevice.cpp: Call zx_cprng_draw for crypographic randomness
(WTF::RandomDevice::cryptographicallyRandomValues):
* wtf/ThreadingPthreads.cpp: Fuchsia does not have pthread_setschedparam
(WTF::Thread::changePriority):
* wtf/unix/CPUTimeFuchsia.cpp: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233401 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/CurrentTime.cpp
Source/WTF/wtf/FastMalloc.cpp
Source/WTF/wtf/InlineASM.h
Source/WTF/wtf/Platform.h
Source/WTF/wtf/PlatformJSCOnly.cmake
Source/WTF/wtf/RandomDevice.cpp
Source/WTF/wtf/RandomDevice.h
Source/WTF/wtf/ThreadingPthreads.cpp
Source/WTF/wtf/fuchsia/CPUTimeFuchsia.cpp [new file with mode: 0644]