Description[compiler] Fix typing of ToLength.
Typer::Visitor::ToLength was unsound (and non-monotonic). For instance,
if the input type was Range(2^53, 2^53+1), the result type was
Constant(2^53). Now the result is type Constant(2^53-1). (The result
of ToLength is guaranteed to be between 0 and 2^53-1.)
BUG=
Review-Url: https://codereview.chromium.org/2753773010
Cr-Commit-Position: refs/heads/master@{#43914}
Committed: https://chromium.googlesource.com/v8/v8/+/1b696f3cec27d3d304e8036d036c4b99899faf04
Patch Set 1 #
Dependent Patchsets: Messages
Total messages: 12 (8 generated)
|