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

Unified Diff: src/compiler/typer.cc

Issue 697093002: Revert "[turbofan] Fix bug in Rangify." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 dc85405fa2fad215275c72cb8fe4e4b41568b768..3649f7d79dcd4c1bf7f0699c92b9c9d512364fed 100644
--- a/src/compiler/typer.cc
+++ b/src/compiler/typer.cc
@@ -408,9 +408,7 @@ Type* Typer::Visitor::FalsifyUndefined(Type* type, Typer* t) {
Type* Typer::Visitor::Rangify(Type* type, Typer* t) {
if (type->IsRange()) return type; // Shortcut.
- if (!type->Is(t->integer) && !type->Is(Type::Integral32())) {
- return type; // Give up.
- }
+ if (!type->Is(t->integer)) return type; // Give up.
Factory* f = t->isolate()->factory();
return Type::Range(f->NewNumber(type->Min()), f->NewNumber(type->Max()),
t->zone());
« 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