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

Unified Diff: src/base/lazy-instance.h

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/base/atomicops_internals_x86_msvc.h ('k') | src/base/once.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/lazy-instance.h
diff --git a/src/lazy-instance.h b/src/base/lazy-instance.h
similarity index 97%
rename from src/lazy-instance.h
rename to src/base/lazy-instance.h
index e353362f286b761c17c07b3b9b4e158dcc41ed51..a20689a16c4accf69d212a90d8631eac693428b2 100644
--- a/src/lazy-instance.h
+++ b/src/base/lazy-instance.h
@@ -65,14 +65,14 @@
// The macro LAZY_DYNAMIC_INSTANCE_INITIALIZER must be used to initialize
// dynamic lazy instances.
-#ifndef V8_LAZY_INSTANCE_H_
-#define V8_LAZY_INSTANCE_H_
+#ifndef V8_BASE_LAZY_INSTANCE_H_
+#define V8_BASE_LAZY_INSTANCE_H_
#include "src/base/macros.h"
-#include "src/once.h"
+#include "src/base/once.h"
namespace v8 {
-namespace internal {
+namespace base {
#define LAZY_STATIC_INSTANCE_INITIALIZER { V8_ONCE_INIT, { {} } }
#define LAZY_DYNAMIC_INSTANCE_INITIALIZER { V8_ONCE_INIT, 0 }
@@ -232,6 +232,6 @@ struct LazyDynamicInstance {
CreateTrait, InitOnceTrait, DestroyTrait> type;
};
-} } // namespace v8::internal
+} } // namespace v8::base
-#endif // V8_LAZY_INSTANCE_H_
+#endif // V8_BASE_LAZY_INSTANCE_H_
« no previous file with comments | « src/base/atomicops_internals_x86_msvc.h ('k') | src/base/once.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698