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

Side by Side Diff: src/types.cc

Issue 1633213003: Remove FieldType::Iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 4 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 unified diff | Download patch
« no previous file with comments | « src/types.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <iomanip> 5 #include <iomanip>
6 6
7 #include "src/types.h" 7 #include "src/types.h"
8 8
9 #include "src/ostreams.h" 9 #include "src/ostreams.h"
10 #include "src/types-inl.h" 10 #include "src/types-inl.h"
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 1422
1423 bool FieldType::NowIs(Handle<FieldType> other) { return NowIs(*other); } 1423 bool FieldType::NowIs(Handle<FieldType> other) { return NowIs(*other); }
1424 1424
1425 Type* FieldType::Convert(Zone* zone) { 1425 Type* FieldType::Convert(Zone* zone) {
1426 if (IsAny()) return Type::Any(); 1426 if (IsAny()) return Type::Any();
1427 if (IsNone()) return Type::None(); 1427 if (IsNone()) return Type::None();
1428 DCHECK(IsClass()); 1428 DCHECK(IsClass());
1429 return Type::Class(AsClass(), zone); 1429 return Type::Class(AsClass(), zone);
1430 } 1430 }
1431 1431
1432 FieldType::Iterator FieldType::Classes() {
1433 if (IsClass()) return Iterator(this->AsClass());
1434 return Iterator();
1435 }
1436
1437 void FieldType::PrintTo(std::ostream& os) { 1432 void FieldType::PrintTo(std::ostream& os) {
1438 if (IsAny()) { 1433 if (IsAny()) {
1439 os << "Any"; 1434 os << "Any";
1440 } else if (IsNone()) { 1435 } else if (IsNone()) {
1441 os << "None"; 1436 os << "None";
1442 } else { 1437 } else {
1443 DCHECK(IsClass()); 1438 DCHECK(IsClass());
1444 os << "Class(" << static_cast<void*>(*AsClass()) << ")"; 1439 os << "Class(" << static_cast<void*>(*AsClass()) << ")";
1445 } 1440 }
1446 } 1441 }
1447 1442
1448 // ----------------------------------------------------------------------------- 1443 // -----------------------------------------------------------------------------
1449 // Instantiations. 1444 // Instantiations.
1450 1445
1451 template class TypeImpl<ZoneTypeConfig>; 1446 template class TypeImpl<ZoneTypeConfig>;
1452 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Map>; 1447 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Map>;
1453 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Object>; 1448 template class TypeImpl<ZoneTypeConfig>::Iterator<i::Object>;
1454 1449
1455 } // namespace internal 1450 } // namespace internal
1456 } // namespace v8 1451 } // namespace v8
OLDNEW
« no previous file with comments | « src/types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698