Index: src/mips64/assembler-mips64-inl.h |
diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h |
index 9c6d1573a24bd1e76ca4835d5896f2950fccf530..436912bc86869fcc25c1c9903cf0944b5677713c 100644 |
--- a/src/mips64/assembler-mips64-inl.h |
+++ b/src/mips64/assembler-mips64-inl.h |
@@ -100,11 +100,11 @@ int DoubleRegister::NumAllocatableRegisters() { |
int FPURegister::ToAllocationIndex(FPURegister reg) { |
- ASSERT(reg.code() % 2 == 0); |
- ASSERT(reg.code() / 2 < kMaxNumAllocatableRegisters); |
- ASSERT(reg.is_valid()); |
- ASSERT(!reg.is(kDoubleRegZero)); |
- ASSERT(!reg.is(kLithiumScratchDouble)); |
+ DCHECK(reg.code() % 2 == 0); |
+ DCHECK(reg.code() / 2 < kMaxNumAllocatableRegisters); |
+ DCHECK(reg.is_valid()); |
+ DCHECK(!reg.is(kDoubleRegZero)); |
+ DCHECK(!reg.is(kLithiumScratchDouble)); |
return (reg.code() / 2); |
} |
@@ -123,13 +123,13 @@ void RelocInfo::apply(intptr_t delta, ICacheFlushMode icache_flush_mode) { |
Address RelocInfo::target_address() { |
- ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
+ DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
return Assembler::target_address_at(pc_, host_); |
} |
Address RelocInfo::target_address_address() { |
- ASSERT(IsCodeTarget(rmode_) || |
+ DCHECK(IsCodeTarget(rmode_) || |
IsRuntimeEntry(rmode_) || |
rmode_ == EMBEDDED_OBJECT || |
rmode_ == EXTERNAL_REFERENCE); |
@@ -168,7 +168,7 @@ int RelocInfo::target_address_size() { |
void RelocInfo::set_target_address(Address target, |
WriteBarrierMode write_barrier_mode, |
ICacheFlushMode icache_flush_mode) { |
- ASSERT(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
+ DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); |
Assembler::set_target_address_at(pc_, host_, target, icache_flush_mode); |
if (write_barrier_mode == UPDATE_WRITE_BARRIER && |
host() != NULL && IsCodeTarget(rmode_)) { |
@@ -185,13 +185,13 @@ Address Assembler::target_address_from_return_address(Address pc) { |
Object* RelocInfo::target_object() { |
- ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
+ DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
return reinterpret_cast<Object*>(Assembler::target_address_at(pc_, host_)); |
} |
Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
- ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
+ DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
return Handle<Object>(reinterpret_cast<Object**>( |
Assembler::target_address_at(pc_, host_))); |
} |
@@ -200,7 +200,7 @@ Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
void RelocInfo::set_target_object(Object* target, |
WriteBarrierMode write_barrier_mode, |
ICacheFlushMode icache_flush_mode) { |
- ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
+ DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
Assembler::set_target_address_at(pc_, host_, |
reinterpret_cast<Address>(target), |
icache_flush_mode); |
@@ -214,13 +214,13 @@ void RelocInfo::set_target_object(Object* target, |
Address RelocInfo::target_reference() { |
- ASSERT(rmode_ == EXTERNAL_REFERENCE); |
+ DCHECK(rmode_ == EXTERNAL_REFERENCE); |
return Assembler::target_address_at(pc_, host_); |
} |
Address RelocInfo::target_runtime_entry(Assembler* origin) { |
- ASSERT(IsRuntimeEntry(rmode_)); |
+ DCHECK(IsRuntimeEntry(rmode_)); |
return target_address(); |
} |
@@ -228,21 +228,21 @@ Address RelocInfo::target_runtime_entry(Assembler* origin) { |
void RelocInfo::set_target_runtime_entry(Address target, |
WriteBarrierMode write_barrier_mode, |
ICacheFlushMode icache_flush_mode) { |
- ASSERT(IsRuntimeEntry(rmode_)); |
+ DCHECK(IsRuntimeEntry(rmode_)); |
if (target_address() != target) |
set_target_address(target, write_barrier_mode, icache_flush_mode); |
} |
Handle<Cell> RelocInfo::target_cell_handle() { |
- ASSERT(rmode_ == RelocInfo::CELL); |
+ DCHECK(rmode_ == RelocInfo::CELL); |
Address address = Memory::Address_at(pc_); |
return Handle<Cell>(reinterpret_cast<Cell**>(address)); |
} |
Cell* RelocInfo::target_cell() { |
- ASSERT(rmode_ == RelocInfo::CELL); |
+ DCHECK(rmode_ == RelocInfo::CELL); |
return Cell::FromValueAddress(Memory::Address_at(pc_)); |
} |
@@ -250,7 +250,7 @@ Cell* RelocInfo::target_cell() { |
void RelocInfo::set_target_cell(Cell* cell, |
WriteBarrierMode write_barrier_mode, |
ICacheFlushMode icache_flush_mode) { |
- ASSERT(rmode_ == RelocInfo::CELL); |
+ DCHECK(rmode_ == RelocInfo::CELL); |
Address address = cell->address() + Cell::kValueOffset; |
Memory::Address_at(pc_) = address; |
if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL) { |
@@ -272,7 +272,7 @@ Handle<Object> RelocInfo::code_age_stub_handle(Assembler* origin) { |
Code* RelocInfo::code_age_stub() { |
- ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
+ DCHECK(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
return Code::GetCodeFromTargetAddress( |
Assembler::target_address_at(pc_ + Assembler::kInstrSize, host_)); |
} |
@@ -280,7 +280,7 @@ Code* RelocInfo::code_age_stub() { |
void RelocInfo::set_code_age_stub(Code* stub, |
ICacheFlushMode icache_flush_mode) { |
- ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
+ DCHECK(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
Assembler::set_target_address_at(pc_ + Assembler::kInstrSize, |
host_, |
stub->instruction_start()); |
@@ -288,7 +288,7 @@ void RelocInfo::set_code_age_stub(Code* stub, |
Address RelocInfo::call_address() { |
- ASSERT((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
+ DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); |
// The pc_ offset of 0 assumes mips patched return sequence per |
// debug-mips.cc BreakLocationIterator::SetDebugBreakAtReturn(), or |
@@ -298,7 +298,7 @@ Address RelocInfo::call_address() { |
void RelocInfo::set_call_address(Address target) { |
- ASSERT((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
+ DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); |
// The pc_ offset of 0 assumes mips patched return sequence per |
// debug-mips.cc BreakLocationIterator::SetDebugBreakAtReturn(), or |
@@ -318,7 +318,7 @@ Object* RelocInfo::call_object() { |
Object** RelocInfo::call_object_address() { |
- ASSERT((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
+ DCHECK((IsJSReturn(rmode()) && IsPatchedReturnSequence()) || |
(IsDebugBreakSlot(rmode()) && IsPatchedDebugBreakSlotSequence())); |
return reinterpret_cast<Object**>(pc_ + 6 * Assembler::kInstrSize); |
} |
@@ -330,7 +330,7 @@ void RelocInfo::set_call_object(Object* target) { |
void RelocInfo::WipeOut() { |
- ASSERT(IsEmbeddedObject(rmode_) || |
+ DCHECK(IsEmbeddedObject(rmode_) || |
IsCodeTarget(rmode_) || |
IsRuntimeEntry(rmode_) || |
IsExternalReference(rmode_)); |