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

Unified Diff: src/compiler/simplified-lowering.cc

Issue 2697063002: Fix typeof optimization for undetectable (Closed)
Patch Set: Add TypeOfIsFunction to EscapeStatusAnalysis Created 3 years, 10 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
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 715e4189b6298f8eedce5cf73ffc267b4e8a2b89..276d0dabf29c5663d20982d532ccd1de9ac94491 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -2547,6 +2547,10 @@ class RepresentationSelector {
VisitObjectIs(node, Type::Undetectable(), lowering);
return;
}
+ case IrOpcode::kTypeOfIsFunction: {
+ VisitObjectIs(node, Type::Function(), lowering);
+ return;
+ }
case IrOpcode::kNewRestParameterElements:
case IrOpcode::kNewUnmappedArgumentsElements: {
ProcessRemainingInputs(node, 0);

Powered by Google App Engine
This is Rietveld 408576698