[turbofan] Improve JSToBoolean typing.

R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/792013006

Cr-Commit-Position: refs/heads/master@{#25896}
This commit is contained in:
bmeurer 2014-12-18 23:10:16 -08:00 committed by Commit bot
parent 233f2d2bf1
commit efd8fd5612

View File

@ -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);
}