Descriptiontighten invariants of HValue::InferRange
* src/hydrogen-instructions.cc (HValue::InferRange): Only mark values
with int32 representation as never being -0. Always return a non-NULL
value; callers should check for representation().IsNone() if that's
their concern.
In practice these invariants were not violated by callers, but they
were sometimes two calls away, which seems brittle.
BUG=
TEST=tests pass, modulo http://code.google.com/p/v8/issues/detail?id=1572
Committed: http://code.google.com/p/v8/source/detail?r=8804
Patch Set 1 #Patch Set 2 : add unit tests for -0 bug #Patch Set 3 : fix presubmit error #Patch Set 4 : another wee presubmit thing, sigh #
Total comments: 3
Messages
Total messages: 5 (0 generated)
|