Title: [106296] trunk/Source/_javascript_Core
Revision
106296
Author
[email protected]
Date
2012-01-30 15:56:00 -0800 (Mon, 30 Jan 2012)

Log Message

Unreviewed ARMv7 build fix.

* tools/CodeProfiling.cpp:
(JSC):
(JSC::setProfileTimer):
(JSC::CodeProfiling::begin):
(JSC::CodeProfiling::end):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (106295 => 106296)


--- trunk/Source/_javascript_Core/ChangeLog	2012-01-30 23:35:01 UTC (rev 106295)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-01-30 23:56:00 UTC (rev 106296)
@@ -1,3 +1,13 @@
+2012-01-30  Gavin Barraclough  <[email protected]>
+
+        Unreviewed ARMv7 build fix.
+
+        * tools/CodeProfiling.cpp:
+        (JSC):
+        (JSC::setProfileTimer):
+        (JSC::CodeProfiling::begin):
+        (JSC::CodeProfiling::end):
+
 2012-01-30  David Levin  <[email protected]>
 
         Using OS(WIN) or OS(MAC) should cause a build error.

Modified: trunk/Source/_javascript_Core/tools/CodeProfiling.cpp (106295 => 106296)


--- trunk/Source/_javascript_Core/tools/CodeProfiling.cpp	2012-01-30 23:35:01 UTC (rev 106295)
+++ trunk/Source/_javascript_Core/tools/CodeProfiling.cpp	2012-01-30 23:56:00 UTC (rev 106296)
@@ -41,23 +41,19 @@
 #pragma clang diagnostic ignored "-Wmissing-noreturn"
 #endif
 
+#if PLATFORM(MAC) && CPU(X86_64)
 // Helper function to start & stop the timer.
 // Presently we're using the wall-clock timer, since this seems to give the best results.
 static void setProfileTimer(unsigned usec)
 {
-#if PLATFORM(MAC) && CPU(X86_64)
     itimerval timer;
     timer.it_value.tv_sec = 0;
     timer.it_value.tv_usec = usec;
     timer.it_interval.tv_sec = 0;
     timer.it_interval.tv_usec = usec;
     setitimer(ITIMER_REAL, &timer, 0);
-#else
-    UNUSED_PARAM(usec);
-    // This platform is not yet supported!
-    ASSERT_NOT_REACHED();
-#endif
 }
+#endif
 
 #if COMPILER(CLANG)
 #pragma clang diagnostic pop
@@ -131,15 +127,15 @@
     if (alreadyProfiling)
         return;
 
-    // Regsiter a signal handler & itimer.
 #if PLATFORM(MAC) && CPU(X86_64)
+    // Regsiter a signal handler & itimer.
     struct sigaction action;
     action.sa_sigaction = reinterpret_cast<void (*)(int, struct __siginfo *, void *)>(profilingTimer);
     sigfillset(&action.sa_mask);
     action.sa_flags = SA_SIGINFO;
     sigaction(SIGALRM, &action, 0);
-#endif
     setProfileTimer(100);
+#endif
 }
 
 void CodeProfiling::end()
@@ -155,8 +151,10 @@
     if (s_profileStack)
         return;
 
+#if PLATFORM(MAC) && CPU(X86_64)
     // Stop profiling
     setProfileTimer(0);
+#endif
 
     current->report();
     delete current;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to