| Index: src/arm/codegen-arm.cc
|
| diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc
|
| index b1b91219f7ce675087a9435b9aa9e640674b885a..29fa25a4dbcb87be9747832e7df678c4ac075d58 100644
|
| --- a/src/arm/codegen-arm.cc
|
| +++ b/src/arm/codegen-arm.cc
|
| @@ -65,7 +65,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);
|
| @@ -225,7 +225,7 @@ MemCopyUint8Function CreateMemCopyUint8Function(MemCopyUint8Function stub) {
|
|
|
| CodeDesc desc;
|
| masm.GetCode(&desc);
|
| - ASSERT(!RelocInfo::RequiresRelocation(desc));
|
| + DCHECK(!RelocInfo::RequiresRelocation(desc));
|
|
|
| CpuFeatures::FlushICache(buffer, actual_size);
|
| base::OS::ProtectCode(buffer, actual_size);
|
| @@ -340,7 +340,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);
|
| @@ -356,14 +356,14 @@ UnaryMathFunction CreateSqrtFunction() {
|
|
|
| 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);
|
| }
|
|
|
| @@ -382,11 +382,11 @@ void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
|
| AllocationSiteMode mode,
|
| Label* allocation_memento_found) {
|
| Register scratch_elements = r4;
|
| - ASSERT(!AreAliased(receiver, key, value, target_map,
|
| + DCHECK(!AreAliased(receiver, key, value, target_map,
|
| scratch_elements));
|
|
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| - ASSERT(allocation_memento_found != NULL);
|
| + DCHECK(allocation_memento_found != NULL);
|
| __ JumpIfJSArrayHasAllocationMemento(
|
| receiver, scratch_elements, allocation_memento_found);
|
| }
|
| @@ -424,7 +424,7 @@ void ElementsTransitionGenerator::GenerateSmiToDouble(
|
| Register scratch2 = r9;
|
|
|
| // Verify input registers don't conflict with locals.
|
| - ASSERT(!AreAliased(receiver, key, value, target_map,
|
| + DCHECK(!AreAliased(receiver, key, value, target_map,
|
| elements, length, array, scratch2));
|
|
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| @@ -562,7 +562,7 @@ void ElementsTransitionGenerator::GenerateDoubleToObject(
|
| Register scratch = r9;
|
|
|
| // Verify input registers don't conflict with locals.
|
| - ASSERT(!AreAliased(receiver, key, value, target_map,
|
| + DCHECK(!AreAliased(receiver, key, value, target_map,
|
| elements, array, length, scratch));
|
|
|
| if (mode == TRACK_ALLOCATION_SITE) {
|
| @@ -787,16 +787,16 @@ void MathExpGenerator::EmitMathExp(MacroAssembler* masm,
|
| Register temp1,
|
| Register temp2,
|
| Register temp3) {
|
| - ASSERT(!input.is(result));
|
| - ASSERT(!input.is(double_scratch1));
|
| - ASSERT(!input.is(double_scratch2));
|
| - ASSERT(!result.is(double_scratch1));
|
| - ASSERT(!result.is(double_scratch2));
|
| - ASSERT(!double_scratch1.is(double_scratch2));
|
| - ASSERT(!temp1.is(temp2));
|
| - ASSERT(!temp1.is(temp3));
|
| - ASSERT(!temp2.is(temp3));
|
| - ASSERT(ExternalReference::math_exp_constants(0).address() != NULL);
|
| + DCHECK(!input.is(result));
|
| + DCHECK(!input.is(double_scratch1));
|
| + DCHECK(!input.is(double_scratch2));
|
| + DCHECK(!result.is(double_scratch1));
|
| + DCHECK(!result.is(double_scratch2));
|
| + DCHECK(!double_scratch1.is(double_scratch2));
|
| + DCHECK(!temp1.is(temp2));
|
| + DCHECK(!temp1.is(temp3));
|
| + DCHECK(!temp2.is(temp3));
|
| + DCHECK(ExternalReference::math_exp_constants(0).address() != NULL);
|
|
|
| Label zero, infinity, done;
|
|
|
| @@ -827,7 +827,7 @@ void MathExpGenerator::EmitMathExp(MacroAssembler* masm,
|
| __ vmul(result, result, double_scratch2);
|
| __ vsub(result, result, double_scratch1);
|
| // Mov 1 in double_scratch2 as math_exp_constants_array[8] == 1.
|
| - ASSERT(*reinterpret_cast<double*>
|
| + DCHECK(*reinterpret_cast<double*>
|
| (ExternalReference::math_exp_constants(8).address()) == 1);
|
| __ vmov(double_scratch2, 1);
|
| __ vadd(result, result, double_scratch2);
|
| @@ -868,7 +868,7 @@ static const uint32_t kCodeAgePatchFirstInstruction = 0xe24f0008;
|
| #endif
|
|
|
| CodeAgingHelper::CodeAgingHelper() {
|
| - ASSERT(young_sequence_.length() == kNoCodeAgeSequenceLength);
|
| + DCHECK(young_sequence_.length() == kNoCodeAgeSequenceLength);
|
| // Since patcher is a large object, allocate it dynamically when needed,
|
| // to avoid overloading the stack in stress conditions.
|
| // DONT_FLUSH is used because the CodeAgingHelper is initialized early in
|
| @@ -894,7 +894,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;
|
| }
|
|
|
|
|