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

Issue 885004: Only invoke reaching definitions if there are >0 variables and >0 definitions... (Closed)

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

Description

Only invoke reaching definitions if there are >0 variables and >0 definitions. Committed: http://code.google.com/p/v8/source/detail?r=4120

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -9 lines) Patch
M src/compiler.cc View 2 chunks +12 lines, -8 lines 1 comment Download
M src/data-flow.cc View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 2 (0 generated)
fschneider
10 years, 9 months ago (2010-03-12 14:54:49 UTC) #1
Kevin Millikin (Chromium)
10 years, 9 months ago (2010-03-12 14:58:15 UTC) #2
LGTM, with a suggestion.

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

http://codereview.chromium.org/885004/diff/1/3#newcode98
src/compiler.cc:98: if (variable_count > 0 && builder.definitions()->length() >
0) {
Hmm.  I'd let the ReachingDefinitions class check the definitions() length
itself.

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

http://codereview.chromium.org/885004/diff/1/2#newcode2064
src/data-flow.cc:2064: ASSERT(!definitions_->is_empty());
I'd leave this check here.

Powered by Google App Engine
This is Rietveld 408576698