Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Issue 2753773010: [compiler] Fix typing of ToLength. (Closed)

Created:
3 years, 9 months ago by neis
Modified:
3 years, 9 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M src/compiler/typer.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M src/compiler/verifier.cc View 1 chunk +1 line, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (8 generated)
neis
PTAL. Tests for monotonicity are in the followup CL. Tests for soundness don't exist yet.
3 years, 9 months ago (2017-03-17 15:52:50 UTC) #4
Jarin
lgtm, great catch!
3 years, 9 months ago (2017-03-17 16:13:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2753773010/1
3 years, 9 months ago (2017-03-17 18:43:40 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 18:45:23 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/1b696f3cec27d3d304e8036d036c4b99899...

Powered by Google App Engine
This is Rietveld 408576698