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

Issue 17842004: Derive synthetic type bounds for expressions (Closed)

Created:
7 years, 6 months ago by rossberg
Modified:
7 years, 5 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Derive synthetic type bounds for expressions Currently synthesizes Smi as the lower bound for numeric operations (except for +, which might result in a string). That would need to change in places where we want to track constants as type feedback. Does not do anything about variables yet. R=jkummerow@chromium.org BUG= Committed: http://code.google.com/p/v8/source/detail?r=15422

Patch Set 1 #

Patch Set 2 : Fix sign case #

Patch Set 3 : More fix #

Patch Set 4 : Tweak #

Patch Set 5 : Simplify assignment #

Total comments: 18

Patch Set 6 : Comments #

Patch Set 7 : More precise addition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -121 lines) Patch
M src/typing.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/typing.cc View 1 2 3 4 5 6 12 chunks +204 lines, -121 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rossberg
7 years, 6 months ago (2013-06-26 10:00:10 UTC) #1
Jakob Kummerow
https://codereview.chromium.org/17842004/diff/11001/src/typing.cc File src/typing.cc (right): https://codereview.chromium.org/17842004/diff/11001/src/typing.cc#newcode251 src/typing.cc:251: MergeLowerType(expr, Type::Union( As discussed offline, inferring the lower bound ...
7 years, 6 months ago (2013-06-26 15:09:23 UTC) #2
rossberg
https://codereview.chromium.org/17842004/diff/11001/src/typing.cc File src/typing.cc (right): https://codereview.chromium.org/17842004/diff/11001/src/typing.cc#newcode251 src/typing.cc:251: MergeLowerType(expr, Type::Union( On 2013/06/26 15:09:23, Jakob wrote: > As ...
7 years, 6 months ago (2013-06-26 16:18:59 UTC) #3
Jakob Kummerow
lgtm
7 years, 5 months ago (2013-06-27 14:41:07 UTC) #4
rossberg
PTAL. Made the case for addition more precise.
7 years, 5 months ago (2013-06-27 14:54:50 UTC) #5
Jakob Kummerow
still LGTM
7 years, 5 months ago (2013-06-27 16:23:25 UTC) #6
rossberg
7 years, 5 months ago (2013-07-01 13:59:24 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 manually as r15422 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698