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

Issue 345573002: Infer whether a variable is assigned (Closed)

Created:
6 years, 6 months ago by rossberg
Modified:
6 years, 6 months ago
Reviewers:
titzer
CC:
v8-dev
Visibility:
Public.

Description

Infer whether a variable is assigned in inner functions R=titzer@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=22039

Patch Set 1 #

Total comments: 4

Patch Set 2 : Refined analysis; comments addressed #

Patch Set 3 : A few more tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -45 lines) Patch
M src/ast.h View 2 chunks +3 lines, -9 lines 0 comments Download
M src/ast.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M src/parser.h View 1 chunk +2 lines, -3 lines 0 comments Download
M src/parser.cc View 1 2 chunks +6 lines, -5 lines 0 comments Download
M src/preparser.h View 4 chunks +5 lines, -5 lines 0 comments Download
M src/scopes.h View 3 chunks +3 lines, -2 lines 0 comments Download
M src/scopes.cc View 1 14 chunks +35 lines, -15 lines 0 comments Download
M src/variables.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M src/variables.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 2 chunks +129 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rossberg
6 years, 6 months ago (2014-06-18 13:08:26 UTC) #1
titzer
https://codereview.chromium.org/345573002/diff/1/src/variables.h File src/variables.h (right): https://codereview.chromium.org/345573002/diff/1/src/variables.h#newcode84 src/variables.h:84: bool is_assigned_in_inner_function() { may_be_assigned_in_inner_function() ? https://codereview.chromium.org/345573002/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): ...
6 years, 6 months ago (2014-06-23 13:03:19 UTC) #2
titzer
On 2014/06/23 13:03:19, titzer wrote: > https://codereview.chromium.org/345573002/diff/1/src/variables.h > File src/variables.h (right): > > https://codereview.chromium.org/345573002/diff/1/src/variables.h#newcode84 > ...
6 years, 6 months ago (2014-06-23 13:04:23 UTC) #3
rossberg
Refined the analysis to work for the general case, not just inner function uses. However, ...
6 years, 6 months ago (2014-06-24 13:40:43 UTC) #4
titzer
lgtm
6 years, 6 months ago (2014-06-25 12:33:47 UTC) #5
rossberg
6 years, 6 months ago (2014-06-26 12:00:15 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r22039.

Powered by Google App Engine
This is Rietveld 408576698