Index: src/types.cc |
diff --git a/src/types.cc b/src/types.cc |
index 634d22277e5cffb743c556bf4eba6e5bd500793f..30434bfe3606153f5c5e4130f1d6f98949b68b18 100644 |
--- a/src/types.cc |
+++ b/src/types.cc |
@@ -146,7 +146,6 @@ Type::bitset BitsetType::Lub(Type* type) { |
} |
if (type->IsConstant()) return type->AsConstant()->Lub(); |
if (type->IsRange()) return type->AsRange()->Lub(); |
- if (type->IsContext()) return kOtherInternal & kTaggedPointer; |
if (type->IsArray()) return kOtherObject; |
if (type->IsFunction()) return kFunction; |
if (type->IsTuple()) return kOtherInternal; |
@@ -412,10 +411,6 @@ bool Type::SimplyEquals(Type* that) { |
return that->IsConstant() |
&& *this->AsConstant()->Value() == *that->AsConstant()->Value(); |
} |
- if (this->IsContext()) { |
- return that->IsContext() |
- && this->AsContext()->Outer()->Equals(that->AsContext()->Outer()); |
- } |
if (this->IsArray()) { |
return that->IsArray() |
&& this->AsArray()->Element()->Equals(that->AsArray()->Element()); |
@@ -1107,10 +1102,6 @@ void Type::PrintTo(std::ostream& os, PrintDimension dim) { |
<< ")"; |
os.flags(saved_flags); |
os.precision(saved_precision); |
- } else if (this->IsContext()) { |
- os << "Context("; |
- this->AsContext()->Outer()->PrintTo(os, dim); |
- os << ")"; |
} else if (this->IsUnion()) { |
os << "("; |
for (int i = 0, n = this->AsUnion()->Length(); i < n; ++i) { |