From 75d4db728b67395954bf85e531924f7e4e3a115e Mon Sep 17 00:00:00 2001 From: bmeurer Date: Mon, 5 Sep 2016 04:55:06 -0700 Subject: [PATCH] [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} --- src/compiler/typer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc index 67d11370e4..1260881d8b 100644 --- a/src/compiler/typer.cc +++ b/src/compiler/typer.cc @@ -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: