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

Unified Diff: src/zone/zone-containers.h

Issue 2344143003: Moved zones and zone related stuff in its own directory. (Closed)
Patch Set: Merge branch 'master' into zonefolder Created 4 years, 3 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/zone/zone-allocator.h ('k') | src/zone/zone-segment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone/zone-containers.h
diff --git a/src/zone-containers.h b/src/zone/zone-containers.h
similarity index 96%
rename from src/zone-containers.h
rename to src/zone/zone-containers.h
index 2b7d110eaa70121bad08b0f03fd7f052e55f0a70..0aecd98e5043909f7a306c384b3b3aee34fe037d 100644
--- a/src/zone-containers.h
+++ b/src/zone/zone-containers.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef V8_ZONE_CONTAINERS_H_
-#define V8_ZONE_CONTAINERS_H_
+#ifndef V8_SRC_ZONE_ZONE_CONTAINERS_H_
+#define V8_SRC_ZONE_ZONE_CONTAINERS_H_
#include <deque>
#include <list>
@@ -13,7 +13,7 @@
#include <stack>
#include <vector>
-#include "src/zone-allocator.h"
+#include "src/zone/zone-allocator.h"
namespace v8 {
namespace internal {
@@ -38,7 +38,6 @@ class ZoneVector : public std::vector<T, zone_allocator<T>> {
: std::vector<T, zone_allocator<T>>(size, def, zone_allocator<T>(zone)) {}
};
-
// A wrapper subclass std::deque to make it easy to construct one
// that uses a zone allocator.
template <typename T>
@@ -49,7 +48,6 @@ class ZoneDeque : public std::deque<T, zone_allocator<T>> {
: std::deque<T, zone_allocator<T>>(zone_allocator<T>(zone)) {}
};
-
// A wrapper subclass std::list to make it easy to construct one
// that uses a zone allocator.
// TODO(mstarzinger): This should be renamed to ZoneList once we got rid of our
@@ -62,7 +60,6 @@ class ZoneLinkedList : public std::list<T, zone_allocator<T>> {
: std::list<T, zone_allocator<T>>(zone_allocator<T>(zone)) {}
};
-
// A wrapper subclass std::priority_queue to make it easy to construct one
// that uses a zone allocator.
template <typename T, typename Compare = std::less<T>>
@@ -75,7 +72,6 @@ class ZonePriorityQueue
ZoneVector<T>(zone)) {}
};
-
// A wrapper subclass for std::queue to make it easy to construct one
// that uses a zone allocator.
template <typename T>
@@ -86,7 +82,6 @@ class ZoneQueue : public std::queue<T, ZoneDeque<T>> {
: std::queue<T, ZoneDeque<T>>(ZoneDeque<T>(zone)) {}
};
-
// A wrapper subclass for std::stack to make it easy to construct one that uses
// a zone allocator.
template <typename T>
@@ -97,7 +92,6 @@ class ZoneStack : public std::stack<T, ZoneDeque<T>> {
: std::stack<T, ZoneDeque<T>>(ZoneDeque<T>(zone)) {}
};
-
// A wrapper subclass for std::set to make it easy to construct one that uses
// a zone allocator.
template <typename K, typename Compare = std::less<K>>
@@ -109,7 +103,6 @@ class ZoneSet : public std::set<K, Compare, zone_allocator<K>> {
zone_allocator<K>(zone)) {}
};
-
// A wrapper subclass for std::map to make it easy to construct one that uses
// a zone allocator.
template <typename K, typename V, typename Compare = std::less<K>>
@@ -142,4 +135,4 @@ typedef ZoneVector<int> IntVector;
} // namespace internal
} // namespace v8
-#endif // V8_ZONE_CONTAINERS_H_
+#endif // V8_SRC_ZONE_ZONE_CONTAINERS_H_
« no previous file with comments | « src/zone/zone-allocator.h ('k') | src/zone/zone-segment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698