Reviewers: Sven Panne,
Description:
[turbofan] Improve JSToBoolean typing.
[email protected]
Please review this at https://codereview.chromium.org/792013006/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+1, -1 lines):
M src/compiler/typer.cc
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);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.