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

Unified Diff: src/types.cc

Issue 2305383002: [turbofan] Nuke the context types. (Closed)
Patch Set: Created 4 years, 3 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/types.h ('k') | test/cctest/test-types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « src/types.h ('k') | test/cctest/test-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698