Bug 879703 - Make TimeStampValue(_SomethingVeryRandomHere*) inline. r=tbsaunde
authorJacek Caban <jacek@codeweavers.com>
Thu, 06 Jun 2013 12:59:18 +0200
changeset 134230 69b2f9d0a9752f14687ecc3822de302021803d38
parent 134229 0972920ff3be2339e861e650f8e1b54a907328fa
child 134231 26eb52ade0ee37166c03e95b12efc4c7c4498ec5
push id29106
push userjacek@codeweavers.com
push dateThu, 06 Jun 2013 11:01:11 +0000
treeherdermozilla-inbound@26eb52ade0ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs879703
milestone24.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 879703 - Make TimeStampValue(_SomethingVeryRandomHere*) inline. r=tbsaunde
xpcom/ds/TimeStamp_windows.cpp
xpcom/ds/TimeStamp_windows.h
--- a/xpcom/ds/TimeStamp_windows.cpp
+++ b/xpcom/ds/TimeStamp_windows.cpp
@@ -317,24 +317,16 @@ InitResolution()
 
   sResolutionSigDigs = sigDigs;
 }
 
 // ----------------------------------------------------------------------------
 // TimeStampValue implementation
 // ----------------------------------------------------------------------------
 
-MOZ_CONSTEXPR TimeStampValue::TimeStampValue(_SomethingVeryRandomHere* nullValue)
-  : mGTC(0)
-  , mQPC(0)
-  , mHasQPC(false)
-  , mIsNull(true)
-{
-}
-
 TimeStampValue::TimeStampValue(ULONGLONG aGTC, ULONGLONG aQPC, bool aHasQPC)
   : mGTC(aGTC)
   , mQPC(aQPC)
   , mHasQPC(aHasQPC)
   , mIsNull(false)
 {
 }
 
--- a/xpcom/ds/TimeStamp_windows.h
+++ b/xpcom/ds/TimeStamp_windows.h
@@ -23,17 +23,19 @@ class TimeStampValue
   bool mHasQPC;
   bool mIsNull;
 
   TimeStampValue(uint64_t GTC, uint64_t QPC, bool hasQPC);
 
   uint64_t CheckQPC(const TimeStampValue &aOther) const;
 
   struct _SomethingVeryRandomHere;
-  MOZ_CONSTEXPR TimeStampValue(_SomethingVeryRandomHere* nullValue);
+  MOZ_CONSTEXPR TimeStampValue(_SomethingVeryRandomHere* nullValue)
+    : mGTC(0), mQPC(0), mHasQPC(false), mIsNull(true) {}
+
 
 public:
   uint64_t operator-(const TimeStampValue &aOther) const;
 
   TimeStampValue operator+(const int64_t aOther) const
     { return TimeStampValue(mGTC + aOther, mQPC + aOther, mHasQPC); }
   TimeStampValue operator-(const int64_t aOther) const
     { return TimeStampValue(mGTC - aOther, mQPC - aOther, mHasQPC); }