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

Unified Diff: src/hydrogen-representation-changes.cc

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 | « src/hydrogen-removable-simulates.cc ('k') | src/hydrogen-types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-representation-changes.cc
diff --git a/src/hydrogen-representation-changes.cc b/src/hydrogen-representation-changes.cc
index 6cca53650c83e0110501d47a38b9d2653f5300d2..ebb03b503ae2fdf7a48f224c78c8894511f14bf6 100644
--- a/src/hydrogen-representation-changes.cc
+++ b/src/hydrogen-representation-changes.cc
@@ -41,7 +41,7 @@ void HRepresentationChangesPhase::InsertRepresentationChangeForUse(
if (!use_value->operand_position(use_index).IsUnknown()) {
new_value->set_position(use_value->operand_position(use_index));
} else {
- ASSERT(!FLAG_hydrogen_track_positions ||
+ DCHECK(!FLAG_hydrogen_track_positions ||
!graph()->info()->IsOptimizing());
}
}
@@ -55,7 +55,7 @@ static bool IsNonDeoptingIntToSmiChange(HChange* change) {
Representation from_rep = change->from();
Representation to_rep = change->to();
// Flags indicating Uint32 operations are set in a later Hydrogen phase.
- ASSERT(!change->CheckFlag(HValue::kUint32));
+ DCHECK(!change->CheckFlag(HValue::kUint32));
return from_rep.IsInteger32() && to_rep.IsSmi() && SmiValuesAre32Bits();
}
@@ -93,7 +93,7 @@ void HRepresentationChangesPhase::InsertRepresentationChangesForValue(
InsertRepresentationChangeForUse(value, use_value, use_index, req);
}
if (value->HasNoUses()) {
- ASSERT(value->IsConstant() || value->IsForceRepresentation());
+ DCHECK(value->IsConstant() || value->IsForceRepresentation());
value->DeleteAndReplaceWith(NULL);
} else {
// The only purpose of a HForceRepresentation is to represent the value
« no previous file with comments | « src/hydrogen-removable-simulates.cc ('k') | src/hydrogen-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698