Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index 14d7645647bc1ce997fd4588e8f37c08638e8ae8..4bcb486326360722f8f5f91dd01d5bcc8ff2ed9c 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -19,14 +19,14 @@ namespace internal { |
void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const { |
masm->EnterFrame(StackFrame::INTERNAL); |
- ASSERT(!masm->has_frame()); |
+ DCHECK(!masm->has_frame()); |
masm->set_has_frame(true); |
} |
void StubRuntimeCallHelper::AfterCall(MacroAssembler* masm) const { |
masm->LeaveFrame(StackFrame::INTERNAL); |
- ASSERT(masm->has_frame()); |
+ DCHECK(masm->has_frame()); |
masm->set_has_frame(false); |
} |
@@ -63,7 +63,7 @@ UnaryMathFunction CreateExpFunction() { |
CodeDesc desc; |
masm.GetCode(&desc); |
- ASSERT(!RelocInfo::RequiresRelocation(desc)); |
+ DCHECK(!RelocInfo::RequiresRelocation(desc)); |
CpuFeatures::FlushICache(buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
@@ -92,7 +92,7 @@ UnaryMathFunction CreateSqrtFunction() { |
CodeDesc desc; |
masm.GetCode(&desc); |
- ASSERT(!RelocInfo::RequiresRelocation(desc)); |
+ DCHECK(!RelocInfo::RequiresRelocation(desc)); |
CpuFeatures::FlushICache(buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
@@ -504,7 +504,7 @@ MemMoveFunction CreateMemMoveFunction() { |
CodeDesc desc; |
masm.GetCode(&desc); |
- ASSERT(!RelocInfo::RequiresRelocation(desc)); |
+ DCHECK(!RelocInfo::RequiresRelocation(desc)); |
CpuFeatures::FlushICache(buffer, actual_size); |
base::OS::ProtectCode(buffer, actual_size); |
// TODO(jkummerow): It would be nice to register this code creation event |
@@ -530,10 +530,10 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( |
AllocationSiteMode mode, |
Label* allocation_memento_found) { |
Register scratch = edi; |
- ASSERT(!AreAliased(receiver, key, value, target_map, scratch)); |
+ DCHECK(!AreAliased(receiver, key, value, target_map, scratch)); |
if (mode == TRACK_ALLOCATION_SITE) { |
- ASSERT(allocation_memento_found != NULL); |
+ DCHECK(allocation_memento_found != NULL); |
__ JumpIfJSArrayHasAllocationMemento( |
receiver, scratch, allocation_memento_found); |
} |
@@ -559,10 +559,10 @@ void ElementsTransitionGenerator::GenerateSmiToDouble( |
AllocationSiteMode mode, |
Label* fail) { |
// Return address is on the stack. |
- ASSERT(receiver.is(edx)); |
- ASSERT(key.is(ecx)); |
- ASSERT(value.is(eax)); |
- ASSERT(target_map.is(ebx)); |
+ DCHECK(receiver.is(edx)); |
+ DCHECK(key.is(ecx)); |
+ DCHECK(value.is(eax)); |
+ DCHECK(target_map.is(ebx)); |
Label loop, entry, convert_hole, gc_required, only_change_map; |
@@ -685,10 +685,10 @@ void ElementsTransitionGenerator::GenerateDoubleToObject( |
AllocationSiteMode mode, |
Label* fail) { |
// Return address is on the stack. |
- ASSERT(receiver.is(edx)); |
- ASSERT(key.is(ecx)); |
- ASSERT(value.is(eax)); |
- ASSERT(target_map.is(ebx)); |
+ DCHECK(receiver.is(edx)); |
+ DCHECK(key.is(ecx)); |
+ DCHECK(value.is(eax)); |
+ DCHECK(target_map.is(ebx)); |
Label loop, entry, convert_hole, gc_required, only_change_map, success; |
@@ -924,11 +924,11 @@ void MathExpGenerator::EmitMathExp(MacroAssembler* masm, |
XMMRegister double_scratch, |
Register temp1, |
Register temp2) { |
- ASSERT(!input.is(double_scratch)); |
- ASSERT(!input.is(result)); |
- ASSERT(!result.is(double_scratch)); |
- ASSERT(!temp1.is(temp2)); |
- ASSERT(ExternalReference::math_exp_constants(0).address() != NULL); |
+ DCHECK(!input.is(double_scratch)); |
+ DCHECK(!input.is(result)); |
+ DCHECK(!result.is(double_scratch)); |
+ DCHECK(!temp1.is(temp2)); |
+ DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); |
Label done; |
@@ -973,7 +973,7 @@ void MathExpGenerator::EmitMathExp(MacroAssembler* masm, |
CodeAgingHelper::CodeAgingHelper() { |
- ASSERT(young_sequence_.length() == kNoCodeAgeSequenceLength); |
+ DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength); |
CodePatcher patcher(young_sequence_.start(), young_sequence_.length()); |
patcher.masm()->push(ebp); |
patcher.masm()->mov(ebp, esp); |
@@ -991,7 +991,7 @@ bool CodeAgingHelper::IsOld(byte* candidate) const { |
bool Code::IsYoungSequence(Isolate* isolate, byte* sequence) { |
bool result = isolate->code_aging_helper()->IsYoung(sequence); |
- ASSERT(result || isolate->code_aging_helper()->IsOld(sequence)); |
+ DCHECK(result || isolate->code_aging_helper()->IsOld(sequence)); |
return result; |
} |