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

Unified Diff: src/compiler/instruction-selector-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/instruction-selector.cc ('k') | src/compiler/js-context-specialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-selector-impl.h
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h
index 5b1dfac4aba399c9e010f69208e3899a458a27e8..573c1ff41e46bbe7ee2d859c61bf7cc414351f84 100644
--- a/src/compiler/instruction-selector-impl.h
+++ b/src/compiler/instruction-selector-impl.h
@@ -177,16 +177,16 @@ class OperandGenerator {
}
UnallocatedOperand* Define(Node* node, UnallocatedOperand* operand) {
- ASSERT_NOT_NULL(node);
- ASSERT_NOT_NULL(operand);
+ DCHECK_NOT_NULL(node);
+ DCHECK_NOT_NULL(operand);
operand->set_virtual_register(node->id());
selector()->MarkAsDefined(node);
return operand;
}
UnallocatedOperand* Use(Node* node, UnallocatedOperand* operand) {
- ASSERT_NOT_NULL(node);
- ASSERT_NOT_NULL(operand);
+ DCHECK_NOT_NULL(node);
+ DCHECK_NOT_NULL(operand);
operand->set_virtual_register(node->id());
selector()->MarkAsUsed(node);
return operand;
@@ -230,43 +230,43 @@ class FlagsContinuation V8_FINAL {
condition_(condition),
true_block_(true_block),
false_block_(false_block) {
- ASSERT_NOT_NULL(true_block);
- ASSERT_NOT_NULL(false_block);
+ DCHECK_NOT_NULL(true_block);
+ DCHECK_NOT_NULL(false_block);
}
// Creates a new flags continuation from the given condition and result node.
FlagsContinuation(FlagsCondition condition, Node* result)
: mode_(kFlags_set), condition_(condition), result_(result) {
- ASSERT_NOT_NULL(result);
+ DCHECK_NOT_NULL(result);
}
bool IsNone() const { return mode_ == kFlags_none; }
bool IsBranch() const { return mode_ == kFlags_branch; }
bool IsSet() const { return mode_ == kFlags_set; }
FlagsCondition condition() const {
- ASSERT(!IsNone());
+ DCHECK(!IsNone());
return condition_;
}
Node* result() const {
- ASSERT(IsSet());
+ DCHECK(IsSet());
return result_;
}
BasicBlock* true_block() const {
- ASSERT(IsBranch());
+ DCHECK(IsBranch());
return true_block_;
}
BasicBlock* false_block() const {
- ASSERT(IsBranch());
+ DCHECK(IsBranch());
return false_block_;
}
void Negate() {
- ASSERT(!IsNone());
+ DCHECK(!IsNone());
condition_ = static_cast<FlagsCondition>(condition_ ^ 1);
}
void Commute() {
- ASSERT(!IsNone());
+ DCHECK(!IsNone());
switch (condition_) {
case kEqual:
case kNotEqual:
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/js-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698