author | Dan Gohman <sunfish@google.com> |
Tue, 15 Oct 2013 20:49:44 -0700 | |
changeset 150873 | eba7271a9bee4b06a0c894b10c8ab48764cf68cd |
parent 150872 | 8f0ebd310f1d0ef9d2d25b2a56b520b264ea13c3 |
child 150874 | 42a20a0d42695e2787a6052ed62a66b371cd8a65 |
push id | 25469 |
push user | cbook@mozilla.com |
push date | Wed, 16 Oct 2013 10:46:01 +0000 |
treeherder | autoland@afae5911a1e0 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | nbp |
bugs | 924660 |
milestone | 27.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/js/src/jit/RangeAnalysis.cpp +++ b/js/src/jit/RangeAnalysis.cpp @@ -2023,32 +2023,23 @@ MMul::truncate() } bool MDiv::truncate() { // Remember analysis, needed to remove negative zero checks. setTruncated(true); - if (type() == MIRType_Double || type() == MIRType_Int32) { - specialization_ = MIRType_Int32; - setResultType(MIRType_Int32); - if (range()) - range()->wrapAroundToInt32(); - - // Divisions where the lhs and rhs are unsigned and the result is - // truncated can be lowered more efficiently. - if (tryUseUnsignedOperands()) - unsigned_ = true; - + // Divisions where the lhs and rhs are unsigned and the result is + // truncated can be lowered more efficiently. + if (specialization() == MIRType_Int32 && tryUseUnsignedOperands()) { + unsigned_ = true; return true; } - JS_ASSERT(specialization() != MIRType_Int32); // fixme - // No modifications. return false; } bool MMod::truncate() { // Remember analysis, needed to remove negative zero checks.