[turbofan] Remove infinity types from truncating_to_zero in typing.

BUG=
R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2393923003
Cr-Commit-Position: refs/heads/master@{#40029}
This commit is contained in:
mvstanton 2016-10-06 04:08:18 -07:00 committed by Commit bot
parent d874e0dca7
commit f5c439db18

View File

@ -21,11 +21,7 @@ OperationTyper::OperationTyper(Isolate* isolate, Zone* zone)
Factory* factory = isolate->factory();
infinity_ = Type::Constant(factory->infinity_value(), zone);
minus_infinity_ = Type::Constant(factory->minus_infinity_value(), zone);
// Unfortunately, the infinities created in other places might be different
// ones (eg the result of NewNumber in TypeNumberConstant).
Type* truncating_to_zero =
Type::Union(Type::Union(infinity_, minus_infinity_, zone),
Type::MinusZeroOrNaN(), zone);
Type* truncating_to_zero = Type::MinusZeroOrNaN();
DCHECK(!truncating_to_zero->Maybe(Type::Integral32()));
singleton_false_ = Type::Constant(factory->false_value(), zone);