Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: src/platform-posix.cc

Issue 125133002: ARM: Enable the subnormal floats on QNX. Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform.h ('k') | src/platform-qnx.cc » ('j') | src/platform-qnx.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-posix.cc
diff --git a/src/platform-posix.cc b/src/platform-posix.cc
index 087625a6b5441300a881a0c7c2becd250b092ed6..3915fb3af4b168d898437d83b142fa2278e673f3 100644
--- a/src/platform-posix.cc
+++ b/src/platform-posix.cc
@@ -606,6 +606,11 @@ static void SetThreadName(const char* name) {
static void* ThreadEntry(void* arg) {
+#if V8_OS_QNX && V8_HOST_ARCH_ARM
+ // On QNX/ARM, subnormal float support is a per-thread setting,
+ // disabled by default. Enable it in all new threads.
+ OS::ArmEnableSubnormalFloat();
+#endif
Thread* thread = reinterpret_cast<Thread*>(arg);
// This is also initialized by the first argument to pthread_create() but we
// don't know which thread will run first (the original thread or the new
« no previous file with comments | « src/platform.h ('k') | src/platform-qnx.cc » ('j') | src/platform-qnx.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698