Skip to content

Commit de7ffec

Browse files
committed
chore: attempted fix for compiler error
1 parent 13126ec commit de7ffec

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

deps/v8/src/zone/zone-list-inl.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,6 @@ void ZoneList<T>::Iterate(Visitor* visitor) {
128128
for (int i = 0; i < length_; i++) visitor->Apply(&data_[i]);
129129
}
130130

131-
template <typename T>
132-
bool ZoneList<T>::Contains(const T& elm) const {
133-
for (int i = 0; i < length_; i++) {
134-
if (data_[i] == elm) return true;
135-
}
136-
return false;
137-
}
138-
139131
template <typename T>
140132
template <typename CompareFunction>
141133
void ZoneList<T>::Sort(CompareFunction cmp) {

deps/v8/src/zone/zone.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,12 @@ class ZoneList final {
251251
// Drops all but the first 'pos' elements from the list.
252252
INLINE(void Rewind(int pos));
253253

254-
inline bool Contains(const T& elm) const;
254+
inline bool Contains(const T& elm) const {
255+
for (int i = 0; i < length_; i++) {
256+
if (data_[i] == elm) return true;
257+
}
258+
return false;
259+
}
255260

256261
// Iterate through all list entries, starting at index 0.
257262
template <class Visitor>

0 commit comments

Comments
 (0)