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

Unified Diff: src/zone-containers.h

Issue 157443002: Add basic support for STL containers allocated in Zones (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 6 years, 10 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-allocator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone-containers.h
diff --git a/src/icu_util.h b/src/zone-containers.h
similarity index 80%
copy from src/icu_util.h
copy to src/zone-containers.h
index 478abce508cc69a74b83028e19ddc66f9ea1d641..31672b62dbf0b4a2926f8354a4bc1b4da6c534ca 100644
--- a/src/icu_util.h
+++ b/src/zone-containers.h
@@ -1,4 +1,4 @@
-// Copyright 2013 the V8 project authors. All rights reserved.
+// Copyright 2014 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -25,18 +25,22 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#ifndef V8_ZONE_CONTAINERS_H_
+#define V8_ZONE_CONTAINERS_H_
-#ifndef V8_ICU_UTIL_H_
-#define V8_ICU_UTIL_H_
+#include <vector>
+#include <set>
-namespace v8 {
+#include "zone.h"
+namespace v8 {
namespace internal {
-// Call this function to load ICU's data tables for the current process. This
-// function should be called before ICU is used.
-bool InitializeICU();
+typedef zone_allocator<int> ZoneIntAllocator;
+typedef std::vector<int, ZoneIntAllocator> IntVector;
+typedef IntVector::iterator IntVectorIter;
+typedef IntVector::reverse_iterator IntVectorRIter;
} } // namespace v8::internal
-#endif // V8_ICU_UTIL_H_
+#endif // V8_ZONE_CONTAINERS_H_
« no previous file with comments | « src/zone-allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698