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

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
Index: src/platform/time.cc
diff --git a/src/platform/time.cc b/src/platform/time.cc
index 32e74794cfdd139fc9e5d53fbe142db8e189b102..a4d796e836bc099269ad2080a2e3a2221b0a4587 100644
--- a/src/platform/time.cc
+++ b/src/platform/time.cc
@@ -17,7 +17,7 @@
#include "src/cpu.h"
#include "src/platform.h"
#if V8_OS_WIN
-#include "src/win32-headers.h"
+#include "src/base/win32-headers.h"
#endif
namespace v8 {
@@ -193,9 +193,9 @@ class Clock V8_FINAL {
};
-static LazyStaticInstance<Clock,
- DefaultConstructTrait<Clock>,
- ThreadSafeInitOnceTrait>::type clock = LAZY_STATIC_INSTANCE_INITIALIZER;
+static base::LazyStaticInstance<Clock, base::DefaultConstructTrait<Clock>,
Jakob Kummerow 2014/06/05 11:49:06 IWYU?
+ base::ThreadSafeInitOnceTrait>::type clock =
+ LAZY_STATIC_INSTANCE_INITIALIZER;
Time Time::Now() {
@@ -462,10 +462,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 +490,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;

Powered by Google App Engine
This is Rietveld 408576698