| OLD | NEW |
| 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 "src/types.h" | 5 #include "src/types.h" |
| 6 | 6 |
| 7 #include "src/string-stream.h" | 7 #include "src/string-stream.h" |
| 8 #include "src/types-inl.h" | 8 #include "src/types-inl.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 BitsetType::Print(os, SEMANTIC(this->AsBitset())); | 904 BitsetType::Print(os, SEMANTIC(this->AsBitset())); |
| 905 } else if (this->IsClass()) { | 905 } else if (this->IsClass()) { |
| 906 os << "Class(" << static_cast<void*>(*this->AsClass()->Map()) << " < "; | 906 os << "Class(" << static_cast<void*>(*this->AsClass()->Map()) << " < "; |
| 907 return BitsetType::New(BitsetType::Lub(this))->PrintTo(os, dim); | 907 return BitsetType::New(BitsetType::Lub(this))->PrintTo(os, dim); |
| 908 os << ")"; | 908 os << ")"; |
| 909 } else if (this->IsConstant()) { | 909 } else if (this->IsConstant()) { |
| 910 os << "Constant(" << static_cast<void*>(*this->AsConstant()->Value()) | 910 os << "Constant(" << static_cast<void*>(*this->AsConstant()->Value()) |
| 911 << " : "; | 911 << " : "; |
| 912 BitsetType::New(BitsetType::Lub(this))->PrintTo(os, dim); | 912 BitsetType::New(BitsetType::Lub(this))->PrintTo(os, dim); |
| 913 os << ")"; | 913 os << ")"; |
| 914 } else if (this->IsRange()) { |
| 915 os << "Range(" << this->AsRange()->Min() |
| 916 << ".." << this->AsRange()->Max() << " : "; |
| 917 BitsetType::New(BitsetType::Lub(this))->PrintTo(os, dim); |
| 918 os << ")"; |
| 914 } else if (this->IsContext()) { | 919 } else if (this->IsContext()) { |
| 915 os << "Context("; | 920 os << "Context("; |
| 916 this->AsContext()->Outer()->PrintTo(os, dim); | 921 this->AsContext()->Outer()->PrintTo(os, dim); |
| 917 os << ")"; | 922 os << ")"; |
| 918 } else if (this->IsUnion()) { | 923 } else if (this->IsUnion()) { |
| 919 os << "("; | 924 os << "("; |
| 920 UnionHandle unioned = handle(this->AsUnion()); | 925 UnionHandle unioned = handle(this->AsUnion()); |
| 921 for (int i = 0; i < unioned->Length(); ++i) { | 926 for (int i = 0; i < unioned->Length(); ++i) { |
| 922 TypeHandle type_i = unioned->Get(i); | 927 TypeHandle type_i = unioned->Get(i); |
| 923 if (i > 0) os << " | "; | 928 if (i > 0) os << " | "; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>; | 968 template class TypeImpl<HeapTypeConfig>::Iterator<i::Object>; |
| 964 | 969 |
| 965 template TypeImpl<ZoneTypeConfig>::TypeHandle | 970 template TypeImpl<ZoneTypeConfig>::TypeHandle |
| 966 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( | 971 TypeImpl<ZoneTypeConfig>::Convert<HeapType>( |
| 967 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); | 972 TypeImpl<HeapTypeConfig>::TypeHandle, TypeImpl<ZoneTypeConfig>::Region*); |
| 968 template TypeImpl<HeapTypeConfig>::TypeHandle | 973 template TypeImpl<HeapTypeConfig>::TypeHandle |
| 969 TypeImpl<HeapTypeConfig>::Convert<Type>( | 974 TypeImpl<HeapTypeConfig>::Convert<Type>( |
| 970 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); | 975 TypeImpl<ZoneTypeConfig>::TypeHandle, TypeImpl<HeapTypeConfig>::Region*); |
| 971 | 976 |
| 972 } } // namespace v8::internal | 977 } } // namespace v8::internal |
| OLD | NEW |