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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_ZONE_CONTAINERS_H_ 5 #ifndef V8_ZONE_CONTAINERS_H_
6 #define V8_ZONE_CONTAINERS_H_ 6 #define V8_ZONE_CONTAINERS_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <queue> 10 #include <queue>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Constructs an empty stack. 80 // Constructs an empty stack.
81 explicit ZoneStack(Zone* zone) 81 explicit ZoneStack(Zone* zone)
82 : std::stack<T, ZoneDeque<T>>(ZoneDeque<T>(zone)) {} 82 : std::stack<T, ZoneDeque<T>>(ZoneDeque<T>(zone)) {}
83 }; 83 };
84 84
85 85
86 // Typedefs to shorten commonly used vectors. 86 // Typedefs to shorten commonly used vectors.
87 typedef ZoneVector<bool> BoolVector; 87 typedef ZoneVector<bool> BoolVector;
88 typedef ZoneVector<int> IntVector; 88 typedef ZoneVector<int> IntVector;
89 89
90 // A small adapter for iterating over ranges of elements.
91 template <typename T>
92 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.
93 typedef T* iterator;
94 iterator begin_;
95 iterator end_;
96 iterator begin() { return begin_; }
97 iterator end() { return end_; }
98 };
99
100
90 } // namespace internal 101 } // namespace internal
91 } // namespace v8 102 } // namespace v8
92 103
93 #endif // V8_ZONE_CONTAINERS_H_ 104 #endif // V8_ZONE_CONTAINERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698