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

Unified Diff: src/hydrogen.cc

Issue 10411016: Fix for issue 2132. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | src/hydrogen-instructions.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 3be001e42b79b996f82523d7927b8fd0c412f8a6..13d4427319cd586266820c1e5a1afa505b4aaa3a 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -1108,7 +1108,8 @@ void HRangeAnalysis::UpdateControlFlowRange(Token::Value op,
void HRangeAnalysis::InferRange(HValue* value) {
- ASSERT(!value->HasRange());
+ ASSERT(value->CheckFlag(HValue::kHasPreinitializedRange)
+ || !value->HasRange());
Florian Schneider 2012/05/18 16:12:06 Can't you just check HasRange() here and leave it
if (!value->representation().IsNone()) {
value->ComputeInitialRange(zone_);
Range* range = value->range();
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | src/hydrogen-instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698