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

Unified Diff: src/compiler/source-position.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/compiler/simplified-operator.h ('k') | src/compiler/structured-machine-assembler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/source-position.cc
diff --git a/src/compiler/source-position.cc b/src/compiler/source-position.cc
index 9f122fabf67aeb7e1a5f1367706f967437ba49ca..d20f6520b1cccc32271a67a8308bbe0d81cc470b 100644
--- a/src/compiler/source-position.cc
+++ b/src/compiler/source-position.cc
@@ -16,7 +16,7 @@ class SourcePositionTable::Decorator : public GraphDecorator {
: source_positions_(source_positions) {}
virtual void Decorate(Node* node) {
- ASSERT(!source_positions_->current_position_.IsInvalid());
+ DCHECK(!source_positions_->current_position_.IsInvalid());
source_positions_->table_.Set(node, source_positions_->current_position_);
}
@@ -33,14 +33,14 @@ SourcePositionTable::SourcePositionTable(Graph* graph)
void SourcePositionTable::AddDecorator() {
- ASSERT(decorator_ == NULL);
+ DCHECK(decorator_ == NULL);
decorator_ = new (graph_->zone()) Decorator(this);
graph_->AddDecorator(decorator_);
}
void SourcePositionTable::RemoveDecorator() {
- ASSERT(decorator_ != NULL);
+ DCHECK(decorator_ != NULL);
graph_->RemoveDecorator(decorator_);
decorator_ = NULL;
}
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | src/compiler/structured-machine-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698