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

Issue 1132005: Add iterative primitive type analysis.... (Closed)

Created:
10 years, 9 months ago by fschneider
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add iterative primitive type analysis. This change adds a data-flow pass to statically determine if a variable contains a primitive type. It requires building the flow graph and computing reaching definitions as pre-requisites. The analysis annotates all VariableProxy nodes with the result. Committed: http://code.google.com/p/v8/source/detail?r=4224

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Patch Set 3 : Added an assertion. #

Total comments: 4

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -15 lines) Patch
M src/ast.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/ast.cc View 1 2 3 chunks +11 lines, -3 lines 0 comments Download
M src/compiler.cc View 2 chunks +19 lines, -7 lines 0 comments Download
M src/data-flow.h View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
M src/data-flow.cc View 1 1 chunk +52 lines, -0 lines 0 comments Download
M src/prettyprinter.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/prettyprinter.cc View 1 2 3 5 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
fschneider
First version.
10 years, 9 months ago (2010-03-22 21:34:26 UTC) #1
Kevin Millikin (Chromium)
Initial comments. Overall looks about right. http://codereview.chromium.org/1132005/diff/1/8 File src/ast.cc (right): http://codereview.chromium.org/1132005/diff/1/8#newcode523 src/ast.cc:523: bool VariableProxy::IsPrimitive() { ...
10 years, 9 months ago (2010-03-23 07:52:42 UTC) #2
fschneider
http://codereview.chromium.org/1132005/diff/1/8 File src/ast.cc (right): http://codereview.chromium.org/1132005/diff/1/8#newcode523 src/ast.cc:523: bool VariableProxy::IsPrimitive() { return is_primitive_; } On 2010/03/23 07:52:42, ...
10 years, 9 months ago (2010-03-23 11:39:14 UTC) #3
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/1132005/diff/19001/2008 File src/data-flow.h (right): http://codereview.chromium.org/1132005/diff/19001/2008#newcode208 src/data-flow.h:208: class BlockNode; No longer needed. http://codereview.chromium.org/1132005/diff/19001/2003 File src/prettyprinter.cc ...
10 years, 9 months ago (2010-03-23 12:41:14 UTC) #4
fschneider
10 years, 9 months ago (2010-03-23 12:59:42 UTC) #5
http://codereview.chromium.org/1132005/diff/19001/2008
File src/data-flow.h (right):

http://codereview.chromium.org/1132005/diff/19001/2008#newcode208
src/data-flow.h:208: class BlockNode;
On 2010/03/23 12:41:14, Kevin Millikin wrote:
> No longer needed.

Done.

http://codereview.chromium.org/1132005/diff/19001/2003
File src/prettyprinter.cc (right):

http://codereview.chromium.org/1132005/diff/19001/2003#newcode17
src/prettyprinter.cc:17: // "AS IS" AND ANY EXPRESS OR IMPLID WARRANTIES,
INCLUDING, BUT NOT
On 2010/03/23 12:41:14, Kevin Millikin wrote:
> Inadvertent change?

Oops. Done.

Powered by Google App Engine
This is Rietveld 408576698