Bug 1083694 - TraceLogger: Part 9: Create dummy of rdtsc for all platforms, r=bbouvier
authorHannes Verschore <hv1989@gmail.com>
Thu, 20 Nov 2014 17:44:05 +0100
changeset 247508 dff82e9a174bd9ea9e443e5bcac7184d22956aa9
parent 247507 15a65e7b59e65ff1be1ee9b6dbdaf3ad9e385d5b
child 247509 ef7a85ec6595efcf2f74ba35ab9082ca6a57cd2e
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1083694
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1083694 - TraceLogger: Part 9: Create dummy of rdtsc for all platforms, r=bbouvier
js/src/vm/TraceLogging.cpp
--- a/js/src/vm/TraceLogging.cpp
+++ b/js/src/vm/TraceLogging.cpp
@@ -68,16 +68,22 @@ rdtsc(void)
             : "=r"(upper),"=r"(lower),"=r"(tmp)
             );
     result = upper;
     result = result<<32;
     result = result|lower;
 
     return result;
 }
+#else
+static __inline__ uint64_t
+rdtsc(void)
+{
+    return 0;
+}
 #endif
 
 class AutoTraceLoggerThreadStateLock
 {
   TraceLoggerThreadState *logging;
 
   public:
     AutoTraceLoggerThreadStateLock(TraceLoggerThreadState *logging MOZ_GUARD_OBJECT_NOTIFIER_PARAM)