Diff
Modified: trunk/Source/WTF/ChangeLog (221599 => 221600)
--- trunk/Source/WTF/ChangeLog 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/ChangeLog 2017-09-05 01:48:31 UTC (rev 221600)
@@ -1,3 +1,30 @@
+2017-09-04 Yusuke Suzuki <[email protected]>
+
+ Remove OS(SOLARIS) support
+ https://bugs.webkit.org/show_bug.cgi?id=176341
+
+ Reviewed by Sam Weinig.
+
+ WebKit project does not have stake holders supporting Solaris right now.
+ And Solaris + SPARC in 64bit environment does not work well since its
+ address space includes non-48bit area. It breaks our JSVALUE64 in JSC.
+ In addition, Solaris a bit complicates our threading implementation
+ because of its special threading stack.
+
+ This patch removes OS(SOLARIS) and COMPILER(SUNCC) support from WebKit.
+
+ * wtf/Compiler.h:
+ * wtf/InlineASM.h:
+ * wtf/MathExtras.h:
+ (std::isfinite): Deleted.
+ (std::signbit): Deleted.
+ (std::isinf): Deleted.
+ * wtf/NumberOfCores.cpp:
+ (WTF::numberOfProcessorCores):
+ * wtf/Platform.h:
+ * wtf/StackBounds.cpp:
+ * wtf/ThreadingPthreads.cpp:
+
2017-09-04 Commit Queue <[email protected]>
Unreviewed, rolling out r221494 and r221500.
Modified: trunk/Source/WTF/wtf/Compiler.h (221599 => 221600)
--- trunk/Source/WTF/wtf/Compiler.h 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/wtf/Compiler.h 2017-09-05 01:48:31 UTC (rev 221600)
@@ -132,12 +132,6 @@
#endif
-/* COMPILER(SUNCC) */
-
-#if defined(__SUNPRO_CC) || defined(__SUNPRO_C)
-#define WTF_COMPILER_SUNCC 1
-#endif
-
#if !COMPILER(CLANG) && !COMPILER(MSVC)
#define WTF_COMPILER_QUIRK_CONSIDERS_UNREACHABLE_CODE 1
#endif
Modified: trunk/Source/WTF/wtf/InlineASM.h (221599 => 221600)
--- trunk/Source/WTF/wtf/InlineASM.h 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/wtf/InlineASM.h 2017-09-05 01:48:31 UTC (rev 221600)
@@ -65,7 +65,6 @@
#elif OS(LINUX) \
|| OS(FREEBSD) \
|| OS(OPENBSD) \
- || OS(SOLARIS) \
|| (OS(HPUX) && CPU(IA64)) \
|| OS(NETBSD)
// ELF platform
Modified: trunk/Source/WTF/wtf/MathExtras.h (221599 => 221600)
--- trunk/Source/WTF/wtf/MathExtras.h 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/wtf/MathExtras.h 2017-09-05 01:48:31 UTC (rev 221600)
@@ -34,10 +34,6 @@
#include <stdlib.h>
#include <wtf/StdLibExtras.h>
-#if OS(SOLARIS)
-#include <ieeefp.h>
-#endif
-
#if OS(OPENBSD)
#include <sys/types.h>
#include <machine/ieee.h>
@@ -75,24 +71,6 @@
const float sqrtOfTwoFloat = static_cast<float>(M_SQRT2);
#endif
-#if OS(SOLARIS)
-
-namespace std {
-
-#ifndef isfinite
-inline bool isfinite(double x) { return finite(x) && !isnand(x); }
-#endif
-#ifndef signbit
-inline bool signbit(double x) { return copysign(1.0, x) < 0; }
-#endif
-#ifndef isinf
-inline bool isinf(double x) { return !finite(x) && !isnand(x); }
-#endif
-
-} // namespace std
-
-#endif
-
#if COMPILER(MSVC)
// Work around a bug in Win, where atan2(+-infinity, +-infinity) yields NaN instead of specific values.
Modified: trunk/Source/WTF/wtf/NumberOfCores.cpp (221599 => 221600)
--- trunk/Source/WTF/wtf/NumberOfCores.cpp 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/wtf/NumberOfCores.cpp 2017-09-05 01:48:31 UTC (rev 221600)
@@ -34,7 +34,7 @@
// data types defined in the former. See sysctl(3) and style(9).
#include <sys/types.h>
#include <sys/sysctl.h>
-#elif OS(LINUX) || OS(AIX) || OS(SOLARIS) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
+#elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
#include <unistd.h>
#elif OS(WINDOWS)
#include <windows.h>
@@ -69,7 +69,7 @@
int sysctlResult = sysctl(name, sizeof(name) / sizeof(int), &result, &length, 0, 0);
s_numberOfCores = sysctlResult < 0 ? defaultIfUnavailable : result;
-#elif OS(LINUX) || OS(AIX) || OS(SOLARIS) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
+#elif OS(LINUX) || OS(AIX) || OS(OPENBSD) || OS(NETBSD) || OS(FREEBSD)
long sysconfResult = sysconf(_SC_NPROCESSORS_ONLN);
s_numberOfCores = sysconfResult < 0 ? defaultIfUnavailable : static_cast<int>(sysconfResult);
Modified: trunk/Source/WTF/wtf/Platform.h (221599 => 221600)
--- trunk/Source/WTF/wtf/Platform.h 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/wtf/Platform.h 2017-09-05 01:48:31 UTC (rev 221600)
@@ -422,11 +422,6 @@
#define WTF_OS_OPENBSD 1
#endif
-/* OS(SOLARIS) - Solaris */
-#if defined(sun) || defined(__sun)
-#define WTF_OS_SOLARIS 1
-#endif
-
/* OS(WINDOWS) - Any version of Windows */
#if defined(WIN32) || defined(_WIN32)
#define WTF_OS_WINDOWS 1
@@ -443,7 +438,6 @@
|| OS(LINUX) \
|| OS(NETBSD) \
|| OS(OPENBSD) \
- || OS(SOLARIS) \
|| defined(unix) \
|| defined(__unix) \
|| defined(__unix__)
@@ -1295,7 +1289,7 @@
#define HAVE_RSA_PSS 1
#endif
-#if !OS(WINDOWS) && !OS(SOLARIS)
+#if !OS(WINDOWS)
#define HAVE_STACK_BOUNDS_FOR_NEW_THREAD 1
#endif
Modified: trunk/Source/WTF/wtf/StackBounds.cpp (221599 => 221600)
--- trunk/Source/WTF/wtf/StackBounds.cpp 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/wtf/StackBounds.cpp 2017-09-05 01:48:31 UTC (rev 221600)
@@ -31,10 +31,6 @@
#include <windows.h>
-#elif OS(SOLARIS)
-
-#include <thread.h>
-
#elif OS(UNIX)
#include <pthread.h>
@@ -71,17 +67,6 @@
return newThreadStackBounds(pthread_self());
}
-#elif OS(SOLARIS)
-
-StackBounds StackBounds::currentThreadStackBoundsInternal()
-{
- stack_t s;
- thr_stksegment(&s);
- void* origin = s.ss_sp;
- void* bound = static_cast<char*>(origin) - s.ss_size;
- return StackBounds { origin, bound };
-}
-
#elif OS(UNIX)
#if OS(OPENBSD)
Modified: trunk/Source/WTF/wtf/ThreadingPthreads.cpp (221599 => 221600)
--- trunk/Source/WTF/wtf/ThreadingPthreads.cpp 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WTF/wtf/ThreadingPthreads.cpp 2017-09-05 01:48:31 UTC (rev 221600)
@@ -59,12 +59,7 @@
#include <semaphore.h>
#include <sys/mman.h>
#include <unistd.h>
-
-#if OS(SOLARIS)
-#include <thread.h>
-#else
#include <pthread.h>
-#endif
#if HAVE(PTHREAD_NP_H)
#include <pthread_np.h>
Modified: trunk/Source/WebCore/ChangeLog (221599 => 221600)
--- trunk/Source/WebCore/ChangeLog 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WebCore/ChangeLog 2017-09-05 01:48:31 UTC (rev 221600)
@@ -1,5 +1,19 @@
2017-09-04 Yusuke Suzuki <[email protected]>
+ Remove OS(SOLARIS) support
+ https://bugs.webkit.org/show_bug.cgi?id=176341
+
+ Reviewed by Sam Weinig.
+
+ * bindings/scripts/preprocessor.pm:
+ (applyPreprocessor):
+ * dom/make_names.pl:
+ * inspector/InspectorFrontendHost.cpp:
+ (WebCore::InspectorFrontendHost::platform):
+ * page/Page.h:
+
+2017-09-04 Yusuke Suzuki <[email protected]>
+
Unreviewed, fixing unused constant for initial buffer size
https://bugs.webkit.org/show_bug.cgi?id=176310
Modified: trunk/Source/WebCore/bindings/scripts/preprocessor.pm (221599 => 221600)
--- trunk/Source/WebCore/bindings/scripts/preprocessor.pm 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WebCore/bindings/scripts/preprocessor.pm 2017-09-05 01:48:31 UTC (rev 221600)
@@ -48,8 +48,6 @@
require Config;
if ($ENV{CC}) {
$preprocessor = $ENV{CC};
- } elsif (($Config::Config{'osname'}) =~ /solaris/i) {
- $preprocessor = "/usr/sfw/bin/gcc";
} elsif (-x "/usr/bin/clang") {
$preprocessor = "/usr/bin/clang";
} else {
Modified: trunk/Source/WebCore/dom/make_names.pl (221599 => 221600)
--- trunk/Source/WebCore/dom/make_names.pl 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WebCore/dom/make_names.pl 2017-09-05 01:48:31 UTC (rev 221600)
@@ -67,8 +67,6 @@
my $ccLocation = "";
if ($ENV{CC}) {
$ccLocation = $ENV{CC};
-} elsif (($Config::Config{"osname"}) =~ /solaris/i) {
- $ccLocation = "/usr/sfw/bin/gcc";
} elsif ($Config::Config{"osname"} eq "darwin" && $ENV{SDKROOT}) {
chomp($ccLocation = `xcrun -find cc -sdk '$ENV{SDKROOT}'`);
} else {
Modified: trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp (221599 => 221600)
--- trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp 2017-09-05 01:48:31 UTC (rev 221600)
@@ -278,8 +278,6 @@
return ASCIILiteral("freebsd");
#elif OS(OPENBSD)
return ASCIILiteral("openbsd");
-#elif OS(SOLARIS)
- return ASCIILiteral("solaris");
#else
return ASCIILiteral("unknown");
#endif
Modified: trunk/Source/WebCore/page/Page.h (221599 => 221600)
--- trunk/Source/WebCore/page/Page.h 2017-09-05 01:13:10 UTC (rev 221599)
+++ trunk/Source/WebCore/page/Page.h 2017-09-05 01:48:31 UTC (rev 221600)
@@ -47,10 +47,6 @@
#include <wtf/UniqueRef.h>
#include <wtf/text/WTFString.h>
-#if OS(SOLARIS)
-#include <sys/time.h> // For time_t structure.
-#endif
-
#if PLATFORM(COCOA)
#include <wtf/SchedulePair.h>
#endif