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

Unified Diff: test/cctest/compiler/simplified-graph-builder.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 | « test/cctest/compiler/graph-builder-tester.cc ('k') | test/cctest/compiler/test-codegen-deopt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/simplified-graph-builder.cc
diff --git a/test/cctest/compiler/simplified-graph-builder.cc b/test/cctest/compiler/simplified-graph-builder.cc
index 038c61a5a693fb4093b3cd92dcdb2f0eff349906..aa1676fd695c42ca4e74e5625930fe355293c420 100644
--- a/test/cctest/compiler/simplified-graph-builder.cc
+++ b/test/cctest/compiler/simplified-graph-builder.cc
@@ -17,7 +17,7 @@ SimplifiedGraphBuilder::SimplifiedGraphBuilder(
void SimplifiedGraphBuilder::Begin() {
- ASSERT(graph()->start() == NULL);
+ DCHECK(graph()->start() == NULL);
Node* start = graph()->NewNode(common()->Start());
graph()->SetStart(start);
set_environment(new (zone()) Environment(this, start));
@@ -42,7 +42,7 @@ SimplifiedGraphBuilder::Environment::Environment(
Node* SimplifiedGraphBuilder::Environment::Top() {
- ASSERT(!values()->empty());
+ DCHECK(!values()->empty());
return values()->back();
}
@@ -53,7 +53,7 @@ void SimplifiedGraphBuilder::Environment::Push(Node* node) {
Node* SimplifiedGraphBuilder::Environment::Pop() {
- ASSERT(!values()->empty());
+ DCHECK(!values()->empty());
Node* back = values()->back();
values()->pop_back();
return back;
@@ -61,14 +61,14 @@ Node* SimplifiedGraphBuilder::Environment::Pop() {
void SimplifiedGraphBuilder::Environment::Poke(size_t depth, Node* node) {
- ASSERT(depth < values()->size());
+ DCHECK(depth < values()->size());
size_t index = values()->size() - depth - 1;
values()->at(index) = node;
}
Node* SimplifiedGraphBuilder::Environment::Peek(size_t depth) {
- ASSERT(depth < values()->size());
+ DCHECK(depth < values()->size());
size_t index = values()->size() - depth - 1;
return values()->at(index);
}
« no previous file with comments | « test/cctest/compiler/graph-builder-tester.cc ('k') | test/cctest/compiler/test-codegen-deopt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698