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

Unified Diff: src/data-flow.cc

Issue 885004: Only invoke reaching definitions if there are >0 variables and >0 definitions... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/compiler.cc ('K') | « src/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/data-flow.cc
===================================================================
--- src/data-flow.cc (revision 4119)
+++ src/data-flow.cc (working copy)
@@ -2061,7 +2061,7 @@
void ReachingDefinitions::Compute() {
- if (definitions_->is_empty()) return;
+ ASSERT(!definitions_->is_empty());
Kevin Millikin (Chromium) 2010/03/12 14:58:16 I'd leave this check here.
int variable_count = variables_.length();
int definition_count = definitions_->length();
« src/compiler.cc ('K') | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698