[turbofan] Math.random never produces -0.

R=mvstanton@chromium.org
BUG=v8:5267,v8:5270

Review-Url: https://codereview.chromium.org/2312693002
Cr-Commit-Position: refs/heads/master@{#39162}
This commit is contained in:
bmeurer 2016-09-05 04:55:06 -07:00 committed by Commit bot
parent 7a6fb4d0e9
commit 75d4db728b

View File

@ -1295,7 +1295,7 @@ Type* Typer::Visitor::JSCallFunctionTyper(Type* fun, Typer* t) {
if (function->shared()->HasBuiltinFunctionId()) {
switch (function->shared()->builtin_function_id()) {
case kMathRandom:
return Type::OrderedNumber();
return Type::PlainNumber();
case kMathFloor:
case kMathCeil:
case kMathRound: