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

Unified Diff: src/hydrogen-range-analysis.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-osr.cc ('k') | src/hydrogen-redundant-phi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-range-analysis.cc
diff --git a/src/hydrogen-range-analysis.cc b/src/hydrogen-range-analysis.cc
index cb9446793eba6b426c0f0635c04152b5fefc6c39..f5c5a9f1be7206da1f6fdb7d0f1a6a8a7aa2a472 100644
--- a/src/hydrogen-range-analysis.cc
+++ b/src/hydrogen-range-analysis.cc
@@ -64,9 +64,9 @@ void HRangeAnalysisPhase::Run() {
// Propagate flags for negative zero checks upwards from conversions
// int32-to-tagged and int32-to-double.
Representation from = instr->value()->representation();
- ASSERT(from.Equals(instr->from()));
+ DCHECK(from.Equals(instr->from()));
if (from.IsSmiOrInteger32()) {
- ASSERT(instr->to().IsTagged() ||
+ DCHECK(instr->to().IsTagged() ||
instr->to().IsDouble() ||
instr->to().IsSmiOrInteger32());
PropagateMinusZeroChecks(instr->value());
@@ -121,7 +121,7 @@ void HRangeAnalysisPhase::PoisonRanges() {
void HRangeAnalysisPhase::InferControlFlowRange(HCompareNumericAndBranch* test,
HBasicBlock* dest) {
- ASSERT((test->FirstSuccessor() == dest) == (test->SecondSuccessor() != dest));
+ DCHECK((test->FirstSuccessor() == dest) == (test->SecondSuccessor() != dest));
if (test->representation().IsSmiOrInteger32()) {
Token::Value op = test->token();
if (test->SecondSuccessor() == dest) {
@@ -170,7 +170,7 @@ void HRangeAnalysisPhase::UpdateControlFlowRange(Token::Value op,
void HRangeAnalysisPhase::InferRange(HValue* value) {
- ASSERT(!value->HasRange());
+ DCHECK(!value->HasRange());
if (!value->representation().IsNone()) {
value->ComputeInitialRange(graph()->zone());
Range* range = value->range();
@@ -184,7 +184,7 @@ void HRangeAnalysisPhase::InferRange(HValue* value) {
void HRangeAnalysisPhase::RollBackTo(int index) {
- ASSERT(index <= changed_ranges_.length());
+ DCHECK(index <= changed_ranges_.length());
for (int i = index; i < changed_ranges_.length(); ++i) {
changed_ranges_[i]->RemoveLastAddedRange();
}
@@ -213,8 +213,8 @@ void HRangeAnalysisPhase::AddRange(HValue* value, Range* range) {
void HRangeAnalysisPhase::PropagateMinusZeroChecks(HValue* value) {
- ASSERT(worklist_.is_empty());
- ASSERT(in_worklist_.IsEmpty());
+ DCHECK(worklist_.is_empty());
+ DCHECK(in_worklist_.IsEmpty());
AddToWorklist(value);
while (!worklist_.is_empty()) {
@@ -282,8 +282,8 @@ void HRangeAnalysisPhase::PropagateMinusZeroChecks(HValue* value) {
}
in_worklist_.Clear();
- ASSERT(in_worklist_.IsEmpty());
- ASSERT(worklist_.is_empty());
+ DCHECK(in_worklist_.IsEmpty());
+ DCHECK(worklist_.is_empty());
}
« no previous file with comments | « src/hydrogen-osr.cc ('k') | src/hydrogen-redundant-phi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698