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

Unified Diff: src/compiler/code-generator-impl.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/code-generator.cc ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/code-generator-impl.h
diff --git a/src/compiler/code-generator-impl.h b/src/compiler/code-generator-impl.h
index 76e5820746a59aea762bc3164a531274d2f3d048..cdab800856198facb9d888b045b618497d90a179 100644
--- a/src/compiler/code-generator-impl.h
+++ b/src/compiler/code-generator-impl.h
@@ -67,8 +67,8 @@ class InstructionOperandConverter {
BasicBlock* InputBlock(int index) {
NodeId block_id = static_cast<NodeId>(instr_->InputAt(index)->index());
// operand should be a block id.
- ASSERT(block_id >= 0);
- ASSERT(block_id < gen_->schedule()->BasicBlockCount());
+ DCHECK(block_id >= 0);
+ DCHECK(block_id < gen_->schedule()->BasicBlockCount());
return gen_->schedule()->GetBlockById(block_id);
}
@@ -83,12 +83,12 @@ class InstructionOperandConverter {
Register TempRegister(int index) { return ToRegister(instr_->TempAt(index)); }
Register ToRegister(InstructionOperand* op) {
- ASSERT(op->IsRegister());
+ DCHECK(op->IsRegister());
return Register::FromAllocationIndex(op->index());
}
DoubleRegister ToDoubleRegister(InstructionOperand* op) {
- ASSERT(op->IsDoubleRegister());
+ DCHECK(op->IsDoubleRegister());
return DoubleRegister::FromAllocationIndex(op->index());
}
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/common-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698