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

Unified Diff: src/zone-containers.h

Issue 803993002: [turbofan] First version of loop analysis: loop finder on the soup of nodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/zone-containers.h
diff --git a/src/zone-containers.h b/src/zone-containers.h
index b0ff7b6cf1bc68297ded6eae7e4bb76f322b18a9..5a520735b1a79da6fda792ca75f4b2017e9c979d 100644
--- a/src/zone-containers.h
+++ b/src/zone-containers.h
@@ -87,6 +87,17 @@ class ZoneStack : public std::stack<T, ZoneDeque<T>> {
typedef ZoneVector<bool> BoolVector;
typedef ZoneVector<int> IntVector;
+// A small adapter for iterating over ranges of elements.
+template <typename T>
+struct PtrRange {
Sven Panne 2014/12/15 14:21:59 Drive-by nit-pick: If performance (i.e. the copyin
Benedikt Meurer 2014/12/16 06:10:25 Ok, I see the reason to have this class in here, b
titzer 2014/12/16 07:55:10 Using base::iterator_range now.
+ typedef T* iterator;
+ iterator begin_;
+ iterator end_;
+ iterator begin() { return begin_; }
+ iterator end() { return end_; }
+};
+
+
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698