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

Issue 668257: Have the flow graph builder collect definitions. (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

Have the flow graph builder collect definitions. Before computing reaching definitions, the set of all definitions in a function must be collected and they must be numbered. Have the flow graph builder collect definitions for stack-allocated variables into a list, and implicitly number them with their list index. Committed: http://code.google.com/p/v8/source/detail?r=4064

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -4 lines) Patch
M src/data-flow.h View 2 chunks +11 lines, -1 line 0 comments Download
M src/data-flow.cc View 2 chunks +17 lines, -3 lines 2 comments Download

Messages

Total messages: 2 (0 generated)
Kevin Millikin (Chromium)
Simple code review for you.
10 years, 9 months ago (2010-03-08 14:50:30 UTC) #1
fschneider
10 years, 9 months ago (2010-03-09 09:23:05 UTC) #2
LGTM.

http://codereview.chromium.org/668257/diff/1/2
File src/data-flow.cc (right):

http://codereview.chromium.org/668257/diff/1/2#newcode437
src/data-flow.cc:437: if (slot != NULL &&
I'm also checking for stack locals and parameters in many locations in the
assigned variables analysis. This would be a candidate for a helper function.

http://codereview.chromium.org/668257/diff/1/2#newcode501
src/data-flow.cc:501: Variable* var =
expr->expression()->AsVariableProxy()->AsVariable();
Sometimes we use 

...->AsVariableProxy()->var()

and sometimes

...->AsVariableProxy()->AsVariable()

This is not part of this change, but could we get rid of one of them?

Powered by Google App Engine
This is Rietveld 408576698