Revert "[turbofan] Fix bug in Rangify."
This reverts commit r25067 for breaking Win64. TBR=jarin@chromium.org Review URL: https://codereview.chromium.org/697093002 Cr-Commit-Position: refs/heads/master@{#25069} git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25069 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
c95fb279d1
commit
84355c8295
@ -408,9 +408,7 @@ Type* Typer::Visitor::FalsifyUndefined(Type* type, Typer* t) {
|
|||||||
|
|
||||||
Type* Typer::Visitor::Rangify(Type* type, Typer* t) {
|
Type* Typer::Visitor::Rangify(Type* type, Typer* t) {
|
||||||
if (type->IsRange()) return type; // Shortcut.
|
if (type->IsRange()) return type; // Shortcut.
|
||||||
if (!type->Is(t->integer) && !type->Is(Type::Integral32())) {
|
if (!type->Is(t->integer)) return type; // Give up.
|
||||||
return type; // Give up.
|
|
||||||
}
|
|
||||||
Factory* f = t->isolate()->factory();
|
Factory* f = t->isolate()->factory();
|
||||||
return Type::Range(f->NewNumber(type->Min()), f->NewNumber(type->Max()),
|
return Type::Range(f->NewNumber(type->Min()), f->NewNumber(type->Max()),
|
||||||
t->zone());
|
t->zone());
|
||||||
|
Loading…
Reference in New Issue
Block a user