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

Unified Diff: src/mips/constants-mips.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/mips/codegen-mips.cc ('k') | src/mips/debug-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/constants-mips.h
diff --git a/src/mips/constants-mips.h b/src/mips/constants-mips.h
index fc64f7dbbf99431e5cdd21866ef41f905680bb0e..b2cbea734e2d2a9cdde9fcbf6aad008809b16e36 100644
--- a/src/mips/constants-mips.h
+++ b/src/mips/constants-mips.h
@@ -499,7 +499,7 @@ enum Condition {
// no_condition value (-2). As long as tests for no_condition check
// for condition < 0, this will work as expected.
inline Condition NegateCondition(Condition cc) {
- ASSERT(cc != cc_always);
+ DCHECK(cc != cc_always);
return static_cast<Condition>(cc ^ 1);
}
@@ -660,29 +660,29 @@ class Instruction {
}
inline int RsValue() const {
- ASSERT(InstructionType() == kRegisterType ||
+ DCHECK(InstructionType() == kRegisterType ||
InstructionType() == kImmediateType);
return Bits(kRsShift + kRsBits - 1, kRsShift);
}
inline int RtValue() const {
- ASSERT(InstructionType() == kRegisterType ||
+ DCHECK(InstructionType() == kRegisterType ||
InstructionType() == kImmediateType);
return Bits(kRtShift + kRtBits - 1, kRtShift);
}
inline int RdValue() const {
- ASSERT(InstructionType() == kRegisterType);
+ DCHECK(InstructionType() == kRegisterType);
return Bits(kRdShift + kRdBits - 1, kRdShift);
}
inline int SaValue() const {
- ASSERT(InstructionType() == kRegisterType);
+ DCHECK(InstructionType() == kRegisterType);
return Bits(kSaShift + kSaBits - 1, kSaShift);
}
inline int FunctionValue() const {
- ASSERT(InstructionType() == kRegisterType ||
+ DCHECK(InstructionType() == kRegisterType ||
InstructionType() == kImmediateType);
return Bits(kFunctionShift + kFunctionBits - 1, kFunctionShift);
}
@@ -724,7 +724,7 @@ class Instruction {
}
inline int RsFieldRaw() const {
- ASSERT(InstructionType() == kRegisterType ||
+ DCHECK(InstructionType() == kRegisterType ||
InstructionType() == kImmediateType);
return InstructionBits() & kRsFieldMask;
}
@@ -735,18 +735,18 @@ class Instruction {
}
inline int RtFieldRaw() const {
- ASSERT(InstructionType() == kRegisterType ||
+ DCHECK(InstructionType() == kRegisterType ||
InstructionType() == kImmediateType);
return InstructionBits() & kRtFieldMask;
}
inline int RdFieldRaw() const {
- ASSERT(InstructionType() == kRegisterType);
+ DCHECK(InstructionType() == kRegisterType);
return InstructionBits() & kRdFieldMask;
}
inline int SaFieldRaw() const {
- ASSERT(InstructionType() == kRegisterType);
+ DCHECK(InstructionType() == kRegisterType);
return InstructionBits() & kSaFieldMask;
}
@@ -771,12 +771,12 @@ class Instruction {
}
inline int32_t Imm16Value() const {
- ASSERT(InstructionType() == kImmediateType);
+ DCHECK(InstructionType() == kImmediateType);
return Bits(kImm16Shift + kImm16Bits - 1, kImm16Shift);
}
inline int32_t Imm26Value() const {
- ASSERT(InstructionType() == kJumpType);
+ DCHECK(InstructionType() == kJumpType);
return Bits(kImm26Shift + kImm26Bits - 1, kImm26Shift);
}
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/mips/debug-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698