Index: src/ia32/assembler-ia32.h |
diff --git a/src/ia32/assembler-ia32.h b/src/ia32/assembler-ia32.h |
index 8b5f998f18c39caba8f5e85c222394976dcee083..f1cfcdd38d7f2a878a8f208404584be41e5fd991 100644 |
--- a/src/ia32/assembler-ia32.h |
+++ b/src/ia32/assembler-ia32.h |
@@ -78,8 +78,8 @@ struct Register { |
static inline Register FromAllocationIndex(int index); |
static Register from_code(int code) { |
- ASSERT(code >= 0); |
- ASSERT(code < kNumRegisters); |
+ DCHECK(code >= 0); |
+ DCHECK(code < kNumRegisters); |
Register r = { code }; |
return r; |
} |
@@ -88,11 +88,11 @@ struct Register { |
// eax, ebx, ecx and edx are byte registers, the rest are not. |
bool is_byte_register() const { return code_ <= 3; } |
int code() const { |
- ASSERT(is_valid()); |
+ DCHECK(is_valid()); |
return code_; |
} |
int bit() const { |
- ASSERT(is_valid()); |
+ DCHECK(is_valid()); |
return 1 << code_; |
} |
@@ -122,7 +122,7 @@ const Register no_reg = { kRegister_no_reg_Code }; |
inline const char* Register::AllocationIndexToString(int index) { |
- ASSERT(index >= 0 && index < kMaxNumAllocatableRegisters); |
+ DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
// This is the mapping of allocation indices to registers. |
const char* const kNames[] = { "eax", "ecx", "edx", "ebx", "esi", "edi" }; |
return kNames[index]; |
@@ -130,13 +130,13 @@ inline const char* Register::AllocationIndexToString(int index) { |
inline int Register::ToAllocationIndex(Register reg) { |
- ASSERT(reg.is_valid() && !reg.is(esp) && !reg.is(ebp)); |
+ DCHECK(reg.is_valid() && !reg.is(esp) && !reg.is(ebp)); |
return (reg.code() >= 6) ? reg.code() - 2 : reg.code(); |
} |
inline Register Register::FromAllocationIndex(int index) { |
- ASSERT(index >= 0 && index < kMaxNumAllocatableRegisters); |
+ DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
return (index >= 4) ? from_code(index + 2) : from_code(index); |
} |
@@ -149,12 +149,12 @@ struct XMMRegister { |
} |
static int ToAllocationIndex(XMMRegister reg) { |
- ASSERT(reg.code() != 0); |
+ DCHECK(reg.code() != 0); |
return reg.code() - 1; |
} |
static XMMRegister FromAllocationIndex(int index) { |
- ASSERT(index >= 0 && index < kMaxNumAllocatableRegisters); |
+ DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
return from_code(index + 1); |
} |
@@ -168,14 +168,14 @@ struct XMMRegister { |
} |
int code() const { |
- ASSERT(is_valid()); |
+ DCHECK(is_valid()); |
return code_; |
} |
bool is(XMMRegister reg) const { return code_ == reg.code_; } |
static const char* AllocationIndexToString(int index) { |
- ASSERT(index >= 0 && index < kMaxNumAllocatableRegisters); |
+ DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
const char* const names[] = { |
"xmm1", |
"xmm2", |
@@ -1175,7 +1175,7 @@ class EnsureSpace BASE_EMBEDDED { |
#ifdef DEBUG |
~EnsureSpace() { |
int bytes_generated = space_before_ - assembler_->available_space(); |
- ASSERT(bytes_generated < assembler_->kGap); |
+ DCHECK(bytes_generated < assembler_->kGap); |
} |
#endif |