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

Unified Diff: src/types.h

Issue 2293343002: [turbofan] Remove remaining uses of Class type from the compiler. (Closed)
Patch Set: Created 4 years, 4 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/compiler/typer.cc ('k') | no next file » | 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 746cca764ea08e38cce14cd5614ab5cb72a48c30..63dc1d65789eccc130eafaa58df328a11307805c 100644
--- a/src/types.h
+++ b/src/types.h
@@ -764,6 +764,11 @@ class Type {
return Of(*value, zone);
}
+ static Type* For(i::Map* map) {
+ return BitsetType::New(BitsetType::ExpandInternals(BitsetType::Lub(map)));
+ }
+ static Type* For(i::Handle<i::Map> map) { return For(*map); }
+
// Extraction of components.
static Type* Representation(Type* t, Zone* zone);
static Type* Semantic(Type* t, Zone* zone);
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698