diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-10-10 14:49:02 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-10 14:49:02 +0400 |
commit | 6bcea4ff932144a5fd02affefd45164fbf471e67 (patch) | |
tree | a8e078c679b12f0daebe10ed254239cb0d79e146 /deps/v8/src/base/platform/time.cc | |
parent | 4fae2356d105e394115188a814097c4a95ae0c5d (diff) | |
download | node-new-6bcea4ff932144a5fd02affefd45164fbf471e67.tar.gz |
deps: update v8 to 3.29.93.1
Diffstat (limited to 'deps/v8/src/base/platform/time.cc')
-rw-r--r-- | deps/v8/src/base/platform/time.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/src/base/platform/time.cc b/deps/v8/src/base/platform/time.cc index 4d1bec2b25..d47ccaf803 100644 --- a/deps/v8/src/base/platform/time.cc +++ b/deps/v8/src/base/platform/time.cc @@ -146,7 +146,7 @@ struct timespec TimeDelta::ToTimespec() const { // We implement time using the high-resolution timers so that we can get // timeouts which are smaller than 10-15ms. To avoid any drift, we // periodically resync the internal clock to the system clock. -class Clock V8_FINAL { +class Clock FINAL { public: Clock() : initial_ticks_(GetSystemTicks()), initial_time_(GetSystemTime()) {} @@ -393,7 +393,7 @@ class TickClock { // (3) System time. The system time provides a low-resolution (typically 10ms // to 55 milliseconds) time stamp but is comparatively less expensive to // retrieve and more reliable. -class HighResolutionTickClock V8_FINAL : public TickClock { +class HighResolutionTickClock FINAL : public TickClock { public: explicit HighResolutionTickClock(int64_t ticks_per_second) : ticks_per_second_(ticks_per_second) { @@ -401,7 +401,7 @@ class HighResolutionTickClock V8_FINAL : public TickClock { } virtual ~HighResolutionTickClock() {} - virtual int64_t Now() V8_OVERRIDE { + virtual int64_t Now() OVERRIDE { LARGE_INTEGER now; BOOL result = QueryPerformanceCounter(&now); DCHECK(result); @@ -419,7 +419,7 @@ class HighResolutionTickClock V8_FINAL : public TickClock { return ticks + 1; } - virtual bool IsHighResolution() V8_OVERRIDE { + virtual bool IsHighResolution() OVERRIDE { return true; } @@ -428,14 +428,14 @@ class HighResolutionTickClock V8_FINAL : public TickClock { }; -class RolloverProtectedTickClock V8_FINAL : public TickClock { +class RolloverProtectedTickClock FINAL : public TickClock { public: // We initialize rollover_ms_ to 1 to ensure that we will never // return 0 from TimeTicks::HighResolutionNow() and TimeTicks::Now() below. RolloverProtectedTickClock() : last_seen_now_(0), rollover_ms_(1) {} virtual ~RolloverProtectedTickClock() {} - virtual int64_t Now() V8_OVERRIDE { + virtual int64_t Now() OVERRIDE { LockGuard<Mutex> lock_guard(&mutex_); // We use timeGetTime() to implement TimeTicks::Now(), which rolls over // every ~49.7 days. We try to track rollover ourselves, which works if @@ -454,7 +454,7 @@ class RolloverProtectedTickClock V8_FINAL : public TickClock { return (now + rollover_ms_) * Time::kMicrosecondsPerMillisecond; } - virtual bool IsHighResolution() V8_OVERRIDE { + virtual bool IsHighResolution() OVERRIDE { return false; } |