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

Unified Diff: src/compiler/typer.cc

Issue 2646523004: [turbofan] Assign proper type to %ClassOf/%_ClassOf. (Closed)
Patch Set: REBASE. Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index 0802c3aebacf587f14bf33758316f5347b4bf933..b2994a2721a42aa127381eee9ae7a72fb4ab1030 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1561,6 +1561,9 @@ Type* Typer::Visitor::TypeJSCallRuntime(Node* node) {
return TypeUnaryOp(node, ToObject);
case Runtime::kInlineToString:
return TypeUnaryOp(node, ToString);
+ case Runtime::kClassOf:
+ case Runtime::kInlineClassOf:
+ return Type::Union(Type::InternalizedString(), Type::Null(), zone());
case Runtime::kHasInPrototypeChain:
return Type::Boolean();
default:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698