[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:
parent
7a6fb4d0e9
commit
75d4db728b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user