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

Unified Diff: src/arm64/delayed-masm-arm64.cc

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/arm64/delayed-masm-arm64.h ('k') | src/arm64/delayed-masm-arm64-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm64/delayed-masm-arm64.cc
diff --git a/src/arm64/delayed-masm-arm64.cc b/src/arm64/delayed-masm-arm64.cc
index b7040e1aea7495ceeb00064afbb45cfb27ba3e5f..c3bda915e8c1ce6d2cf1bff7e94175f330cf51df 100644
--- a/src/arm64/delayed-masm-arm64.cc
+++ b/src/arm64/delayed-masm-arm64.cc
@@ -16,12 +16,12 @@ namespace internal {
void DelayedMasm::StackSlotMove(LOperand* src, LOperand* dst) {
- ASSERT(src->IsStackSlot());
- ASSERT(dst->IsStackSlot());
+ DCHECK(src->IsStackSlot());
+ DCHECK(dst->IsStackSlot());
MemOperand src_operand = cgen_->ToMemOperand(src);
MemOperand dst_operand = cgen_->ToMemOperand(dst);
if (pending_ == kStackSlotMove) {
- ASSERT(pending_pc_ == masm_->pc_offset());
+ DCHECK(pending_pc_ == masm_->pc_offset());
UseScratchRegisterScope scope(masm_);
DoubleRegister temp1 = scope.AcquireD();
DoubleRegister temp2 = scope.AcquireD();
@@ -66,7 +66,7 @@ void DelayedMasm::StackSlotMove(LOperand* src, LOperand* dst) {
void DelayedMasm::StoreConstant(uint64_t value, const MemOperand& operand) {
- ASSERT(!scratch_register_acquired_);
+ DCHECK(!scratch_register_acquired_);
if ((pending_ == kStoreConstant) && (value == pending_value_)) {
MemOperand::PairResult result =
MemOperand::AreConsistentForPair(pending_address_dst_, operand);
@@ -75,7 +75,7 @@ void DelayedMasm::StoreConstant(uint64_t value, const MemOperand& operand) {
(result == MemOperand::kPairAB) ?
pending_address_dst_ :
operand;
- ASSERT(pending_pc_ == masm_->pc_offset());
+ DCHECK(pending_pc_ == masm_->pc_offset());
if (pending_value_ == 0) {
__ Stp(xzr, xzr, dst);
} else {
@@ -104,18 +104,18 @@ void DelayedMasm::Load(const CPURegister& rd, const MemOperand& operand) {
case MemOperand::kNotPair:
break;
case MemOperand::kPairAB:
- ASSERT(pending_pc_ == masm_->pc_offset());
- ASSERT(!IsScratchRegister(pending_register_) ||
+ DCHECK(pending_pc_ == masm_->pc_offset());
+ DCHECK(!IsScratchRegister(pending_register_) ||
scratch_register_acquired_);
- ASSERT(!IsScratchRegister(rd) || scratch_register_acquired_);
+ DCHECK(!IsScratchRegister(rd) || scratch_register_acquired_);
__ Ldp(pending_register_, rd, pending_address_src_);
ResetPending();
return;
case MemOperand::kPairBA:
- ASSERT(pending_pc_ == masm_->pc_offset());
- ASSERT(!IsScratchRegister(pending_register_) ||
+ DCHECK(pending_pc_ == masm_->pc_offset());
+ DCHECK(!IsScratchRegister(pending_register_) ||
scratch_register_acquired_);
- ASSERT(!IsScratchRegister(rd) || scratch_register_acquired_);
+ DCHECK(!IsScratchRegister(rd) || scratch_register_acquired_);
__ Ldp(rd, pending_register_, operand);
ResetPending();
return;
@@ -139,12 +139,12 @@ void DelayedMasm::Store(const CPURegister& rd, const MemOperand& operand) {
case MemOperand::kNotPair:
break;
case MemOperand::kPairAB:
- ASSERT(pending_pc_ == masm_->pc_offset());
+ DCHECK(pending_pc_ == masm_->pc_offset());
__ Stp(pending_register_, rd, pending_address_dst_);
ResetPending();
return;
case MemOperand::kPairBA:
- ASSERT(pending_pc_ == masm_->pc_offset());
+ DCHECK(pending_pc_ == masm_->pc_offset());
__ Stp(rd, pending_register_, operand);
ResetPending();
return;
@@ -162,7 +162,7 @@ void DelayedMasm::Store(const CPURegister& rd, const MemOperand& operand) {
void DelayedMasm::EmitPending() {
- ASSERT((pending_ == kNone) || (pending_pc_ == masm_->pc_offset()));
+ DCHECK((pending_ == kNone) || (pending_pc_ == masm_->pc_offset()));
switch (pending_) {
case kNone:
return;
@@ -175,7 +175,7 @@ void DelayedMasm::EmitPending() {
}
break;
case kLoad:
- ASSERT(!IsScratchRegister(pending_register_) ||
+ DCHECK(!IsScratchRegister(pending_register_) ||
scratch_register_acquired_);
__ Ldr(pending_register_, pending_address_src_);
break;
« no previous file with comments | « src/arm64/delayed-masm-arm64.h ('k') | src/arm64/delayed-masm-arm64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698