Commit c2a1c91d authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[bigint,compiler] Further refine some typings.

Bug: v8:6791
Change-Id: I31acb7f24323f544a2930e6338a178ac66806ea9
Reviewed-on: https://chromium-review.googlesource.com/829134Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50151}
parent b15f16a4
......@@ -421,7 +421,9 @@ Type* Typer::Visitor::BinaryNumberOpTyper(Type* lhs, Type* rhs, Typer* t,
if (lhs_is_number || rhs_is_number) {
return Type::Number();
}
// TODO(neis): Check if one side is BigInt in order to return BigInt?
if (lhs->Is(Type::BigInt()) || rhs->Is(Type::BigInt())) {
return Type::BigInt();
}
return Type::Numeric();
}
......
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