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

Unified Diff: src/compiler/instruction-selector-impl.h

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow dchecks. Created 5 years, 11 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
Index: src/compiler/instruction-selector-impl.h
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h
index 26ac2d9f590f30e3a1ca2302eef3bbae8fd4f880..626fbf6baae12c5af983125a9a0101720fc627ea 100644
--- a/src/compiler/instruction-selector-impl.h
+++ b/src/compiler/instruction-selector-impl.h
@@ -169,16 +169,16 @@ class OperandGenerator {
}
UnallocatedOperand* Define(Node* node, UnallocatedOperand* operand) {
- DCHECK_NOT_NULL(node);
- DCHECK_NOT_NULL(operand);
+ DCHECK(node);
+ DCHECK(operand);
operand->set_virtual_register(selector_->GetVirtualRegister(node));
selector()->MarkAsDefined(node);
return operand;
}
UnallocatedOperand* Use(Node* node, UnallocatedOperand* operand) {
- DCHECK_NOT_NULL(node);
- DCHECK_NOT_NULL(operand);
+ DCHECK(node);
+ DCHECK(operand);
operand->set_virtual_register(selector_->GetVirtualRegister(node));
selector()->MarkAsUsed(node);
return operand;
@@ -232,14 +232,14 @@ class FlagsContinuation FINAL {
condition_(condition),
true_block_(true_block),
false_block_(false_block) {
- DCHECK_NOT_NULL(true_block);
- DCHECK_NOT_NULL(false_block);
+ DCHECK(true_block);
+ DCHECK(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) {
- DCHECK_NOT_NULL(result);
+ DCHECK(result);
}
bool IsNone() const { return mode_ == kFlags_none; }

Powered by Google App Engine
This is Rietveld 408576698