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

Unified Diff: src/compiler/typer.cc

Issue 2547043002: [Interpreter] Optimize equality check with null/undefined with a check on the map. (Closed)
Patch Set: Fixed a bug in reducing JSIsUndetectable. Created 4 years 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/typer.cc
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc
index 6fb66c612d22cf9de47488ae14c96cb0bbdb6d83..74e022f450b0f70ac60389b9f43777e3da2e69f0 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1046,6 +1046,9 @@ Type* Typer::Visitor::TypeJSTypeOf(Node* node) {
return Type::InternalizedString();
}
+Type* Typer::Visitor::TypeJSIsUndetectable(Node* node) {
+ return Type::Boolean();
+}
// JS conversion operators.

Powered by Google App Engine
This is Rietveld 408576698