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

Unified Diff: src/types.h

Issue 1633213003: Remove FieldType::Iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 4 years, 11 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/ic/x87/handler-compiler-x87.cc ('k') | src/types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/types.h
diff --git a/src/types.h b/src/types.h
index 0c4ef26fff127021332967c838a9e07926687fbe..b293376add31f41e3faac08d3c76eda337df4bf0 100644
--- a/src/types.h
+++ b/src/types.h
@@ -1142,9 +1142,6 @@ typedef BoundsImpl<ZoneTypeConfig> Bounds;
class FieldType : public Object {
public:
- class Iterator;
-
- // static Handle<FieldType> Create(Isolate* isolate, int length);
static FieldType* None();
static FieldType* Any();
static Handle<FieldType> None(Isolate* isolate);
@@ -1163,34 +1160,10 @@ class FieldType : public Object {
bool NowIs(FieldType* other);
bool NowIs(Handle<FieldType> other);
Type* Convert(Zone* zone);
- Iterator Classes();
- int ClassCount() { return IsClass() ? 1 : 0; }
void PrintTo(std::ostream& os);
};
-class FieldType::Iterator {
- public:
- bool Done() const { return done_; }
- i::Handle<i::Map> Current() {
- DCHECK(!Done());
- return map_.ToHandleChecked();
- }
- void Advance() {
- if (!done_) done_ = true;
- }
-
- private:
- friend FieldType;
-
- Iterator() : done_(true) {}
- explicit Iterator(MaybeHandle<i::Map> map)
- : done_(map.is_null()), map_(map) {}
-
- bool done_;
- MaybeHandle<i::Map> map_;
-};
-
} // namespace internal
} // namespace v8
« no previous file with comments | « src/ic/x87/handler-compiler-x87.cc ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698