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

Unified Diff: src/platform/time.cc

Issue 316133002: Move atomic ops and related files to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 6 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/semaphore.h ('k') | src/runtime-profiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/time.cc
diff --git a/src/platform/time.cc b/src/platform/time.cc
index 32e74794cfdd139fc9e5d53fbe142db8e189b102..09b6f8a470cd86302104620f4dc74cfebf28e434 100644
--- a/src/platform/time.cc
+++ b/src/platform/time.cc
@@ -13,12 +13,13 @@
#include <string.h>
+#if V8_OS_WIN
+#include "src/base/lazy-instance.h"
+#include "src/base/win32-headers.h"
+#endif
#include "src/checks.h"
#include "src/cpu.h"
#include "src/platform.h"
-#if V8_OS_WIN
-#include "src/win32-headers.h"
-#endif
namespace v8 {
namespace internal {
@@ -193,9 +194,9 @@ class Clock V8_FINAL {
};
-static LazyStaticInstance<Clock,
- DefaultConstructTrait<Clock>,
- ThreadSafeInitOnceTrait>::type clock = LAZY_STATIC_INSTANCE_INITIALIZER;
+static base::LazyStaticInstance<Clock, base::DefaultConstructTrait<Clock>,
+ base::ThreadSafeInitOnceTrait>::type clock =
+ LAZY_STATIC_INSTANCE_INITIALIZER;
Time Time::Now() {
@@ -462,10 +463,11 @@ class RolloverProtectedTickClock V8_FINAL : public TickClock {
};
-static LazyStaticInstance<RolloverProtectedTickClock,
- DefaultConstructTrait<RolloverProtectedTickClock>,
- ThreadSafeInitOnceTrait>::type tick_clock =
- LAZY_STATIC_INSTANCE_INITIALIZER;
+static base::LazyStaticInstance<
+ RolloverProtectedTickClock,
+ base::DefaultConstructTrait<RolloverProtectedTickClock>,
+ base::ThreadSafeInitOnceTrait>::type tick_clock =
+ LAZY_STATIC_INSTANCE_INITIALIZER;
struct CreateHighResTickClockTrait {
@@ -489,9 +491,9 @@ struct CreateHighResTickClockTrait {
};
-static LazyDynamicInstance<TickClock,
+static base::LazyDynamicInstance<TickClock,
CreateHighResTickClockTrait,
- ThreadSafeInitOnceTrait>::type high_res_tick_clock =
+ base::ThreadSafeInitOnceTrait>::type high_res_tick_clock =
LAZY_DYNAMIC_INSTANCE_INITIALIZER;
« no previous file with comments | « src/platform/semaphore.h ('k') | src/runtime-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698