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

Unified Diff: src/compiler/typer.cc

Issue 792013006: [turbofan] Improve JSToBoolean typing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 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
« 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 9101e1ddd1a5b1898aae7e69212ca4e82320628a..dc20d847c80176ebe7a0eb4c67bd3bb2bd259058 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -1182,7 +1182,7 @@ Bounds Typer::Visitor::TypeJSTypeOf(Node* node) {
Bounds Typer::Visitor::TypeJSToBoolean(Node* node) {
- return Bounds(Type::None(zone()), Type::Boolean(zone()));
+ return TypeUnaryOp(node, ToBoolean);
}
« 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