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

Issue 1155006: Include initial definitions in reaching definitions analysis. (Closed)

Created:
10 years, 9 months ago by Kevin Millikin (Chromium)
Modified:
9 years, 7 months ago
Reviewers:
fschneider
CC:
v8-dev
Visibility:
Public.

Description

Include initial definitions in reaching definitions analysis. Include the initial definitions for parameters on input to the function, and the initial definition of stack-allocated locals as undefined. Committed: http://code.google.com/p/v8/source/detail?r=4206

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -65 lines) Patch
M src/compiler.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M src/data-flow.h View 4 chunks +16 lines, -18 lines 0 comments Download
M src/data-flow.cc View 6 chunks +31 lines, -37 lines 4 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
10 years, 9 months ago (2010-03-22 13:23:41 UTC) #1
fschneider
LGTM. http://codereview.chromium.org/1155006/diff/1/3 File src/data-flow.cc (right): http://codereview.chromium.org/1155006/diff/1/3#newcode1876 src/data-flow.cc:1876: // Step 1: For each (stack-allocated) variable, identify ...
10 years, 9 months ago (2010-03-22 13:49:29 UTC) #2
Kevin Millikin (Chromium)
10 years, 9 months ago (2010-03-22 14:06:40 UTC) #3
http://codereview.chromium.org/1155006/diff/1/3
File src/data-flow.cc (right):

http://codereview.chromium.org/1155006/diff/1/3#newcode1876
src/data-flow.cc:1876: // Step 1: For each (stack-allocated) variable, identify
the set of all
On 2010/03/22 13:49:29, fschneider wrote:
> We don't handle any other variables? Maybe change comment:
> 
> (stack-allocated) -> stack-allocated
> 
> 

Done.

http://codereview.chromium.org/1155006/diff/1/3#newcode1889
src/data-flow.cc:1889: variables[IndexFor(var, variable_count_)]->Add(i +
variable_count_);
On 2010/03/22 13:49:29, fschneider wrote:
> variables->at(IndexFor(var, variable_count_))
> 
> for consistency with the rest?

It would be variables.at(...).  I'll leave it with [] for now.

Powered by Google App Engine
This is Rietveld 408576698