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

Issue 804003: Add defensive checks to the flow graph builder. (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

Add defensive checks to the flow graph builder. Visitor stack overflow is used to signal an unsupported construct in the flow graph. Check for it in more places. Make the utility functions for appending to graphs handle more cases if they can be handled correctly. Remove the entry node in favor of a block with a NULL predecessor as single entry. Represent the empty flow graph as a single empty block. Add empty blocks lazily where needed to preserve edge-split form. Committed: http://code.google.com/p/v8/source/detail?r=4086

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -136 lines) Patch
M src/compiler.cc View 1 chunk +1 line, -1 line 1 comment Download
M src/data-flow.h View 6 chunks +66 lines, -82 lines 0 comments Download
M src/data-flow.cc View 13 chunks +48 lines, -53 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Kevin Millikin (Chromium)
10 years, 9 months ago (2010-03-10 16:07:13 UTC) #1
fschneider
10 years, 9 months ago (2010-03-10 16:51:09 UTC) #2
LGTM.

http://codereview.chromium.org/804003/diff/1/2
File src/compiler.cc (right):

http://codereview.chromium.org/804003/diff/1/2#newcode471
src/compiler.cc:471: if (FLAG_print_graph_text) {
Also check for stack overflow here?

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

http://codereview.chromium.org/804003/diff/1/3#newcode63
src/data-flow.cc:63: // successors to branch nodes).
Maybe ASSERT(graph != NULL) for consistency with the other AppendX functions,

Powered by Google App Engine
This is Rietveld 408576698