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

Unified Diff: src/compiler/ast-graph-builder.h

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/arm64/instruction-selector-arm64.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/ast-graph-builder.h
diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
index 6009559f0849d50c3c4783b6bba21ef6f3344361..5e453bf0e1e515c93c3514ca3093de93508e6cd2 100644
--- a/src/compiler/ast-graph-builder.h
+++ b/src/compiler/ast-graph-builder.h
@@ -203,22 +203,22 @@ class AstGraphBuilder::Environment
// Operations on parameter or local variables. The parameter indices are
// shifted by 1 (receiver is parameter index -1 but environment index 0).
void Bind(Variable* variable, Node* node) {
- ASSERT(variable->IsStackAllocated());
+ DCHECK(variable->IsStackAllocated());
if (variable->IsParameter()) {
values()->at(variable->index() + 1) = node;
parameters_dirty_ = true;
} else {
- ASSERT(variable->IsStackLocal());
+ DCHECK(variable->IsStackLocal());
values()->at(variable->index() + parameters_count_) = node;
locals_dirty_ = true;
}
}
Node* Lookup(Variable* variable) {
- ASSERT(variable->IsStackAllocated());
+ DCHECK(variable->IsStackAllocated());
if (variable->IsParameter()) {
return values()->at(variable->index() + 1);
} else {
- ASSERT(variable->IsStackLocal());
+ DCHECK(variable->IsStackLocal());
return values()->at(variable->index() + parameters_count_);
}
}
@@ -229,11 +229,11 @@ class AstGraphBuilder::Environment
stack_dirty_ = true;
}
Node* Top() {
- ASSERT(stack_height() > 0);
+ DCHECK(stack_height() > 0);
return values()->back();
}
Node* Pop() {
- ASSERT(stack_height() > 0);
+ DCHECK(stack_height() > 0);
Node* back = values()->back();
values()->pop_back();
return back;
@@ -241,17 +241,17 @@ class AstGraphBuilder::Environment
// Direct mutations of the operand stack.
void Poke(int depth, Node* node) {
- ASSERT(depth >= 0 && depth < stack_height());
+ DCHECK(depth >= 0 && depth < stack_height());
int index = static_cast<int>(values()->size()) - depth - 1;
values()->at(index) = node;
}
Node* Peek(int depth) {
- ASSERT(depth >= 0 && depth < stack_height());
+ DCHECK(depth >= 0 && depth < stack_height());
int index = static_cast<int>(values()->size()) - depth - 1;
return values()->at(index);
}
void Drop(int depth) {
- ASSERT(depth >= 0 && depth <= stack_height());
+ DCHECK(depth >= 0 && depth <= stack_height());
values()->erase(values()->end() - depth, values()->end());
}
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698