Commit 8bfbe25a authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[compiler] Fix typing of NumberToString operator.

It must be monotone.

R=bmeurer@chromium.org

Bug: v8:7354
Change-Id: I08dcd3333518029eef08c074c2b91b5c20ad699e
Reviewed-on: https://chromium-review.googlesource.com/880982Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50801}
parent 6bcf57ef
...@@ -507,7 +507,7 @@ Type* OperationTyper::NumberToInt32(Type* type) { ...@@ -507,7 +507,7 @@ Type* OperationTyper::NumberToInt32(Type* type) {
Type* OperationTyper::NumberToString(Type* type) { Type* OperationTyper::NumberToString(Type* type) {
DCHECK(type->Is(Type::Number())); DCHECK(type->Is(Type::Number()));
if (type->IsNone()) return type;
if (type->Is(Type::NaN())) return singleton_NaN_string_; if (type->Is(Type::NaN())) return singleton_NaN_string_;
if (type->Is(cache_.kZeroOrMinusZero)) return singleton_zero_string_; if (type->Is(cache_.kZeroOrMinusZero)) return singleton_zero_string_;
return Type::SeqString(); return Type::SeqString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment