Index: src/x64/debug-x64.cc |
diff --git a/src/x64/debug-x64.cc b/src/x64/debug-x64.cc |
index f00a4efb78b008e0ad1f195cc7d3388cbe850b61..fe78e372145dd715bddef5c0028e77fb7e4d846b 100644 |
--- a/src/x64/debug-x64.cc |
+++ b/src/x64/debug-x64.cc |
@@ -23,7 +23,7 @@ bool BreakLocationIterator::IsDebugBreakAtReturn() { |
// CodeGenerator::VisitReturnStatement and VirtualFrame::Exit in codegen-x64.cc |
// for the precise return instructions sequence. |
void BreakLocationIterator::SetDebugBreakAtReturn() { |
- ASSERT(Assembler::kJSReturnSequenceLength >= Assembler::kCallSequenceLength); |
+ DCHECK(Assembler::kJSReturnSequenceLength >= Assembler::kCallSequenceLength); |
rinfo()->PatchCodeWithCall( |
debug_info_->GetIsolate()->builtins()->Return_DebugBreak()->entry(), |
Assembler::kJSReturnSequenceLength - Assembler::kCallSequenceLength); |
@@ -40,20 +40,20 @@ void BreakLocationIterator::ClearDebugBreakAtReturn() { |
// A debug break in the frame exit code is identified by the JS frame exit code |
// having been patched with a call instruction. |
bool Debug::IsDebugBreakAtReturn(v8::internal::RelocInfo* rinfo) { |
- ASSERT(RelocInfo::IsJSReturn(rinfo->rmode())); |
+ DCHECK(RelocInfo::IsJSReturn(rinfo->rmode())); |
return rinfo->IsPatchedReturnSequence(); |
} |
bool BreakLocationIterator::IsDebugBreakAtSlot() { |
- ASSERT(IsDebugBreakSlot()); |
+ DCHECK(IsDebugBreakSlot()); |
// Check whether the debug break slot instructions have been patched. |
return rinfo()->IsPatchedDebugBreakSlotSequence(); |
} |
void BreakLocationIterator::SetDebugBreakAtSlot() { |
- ASSERT(IsDebugBreakSlot()); |
+ DCHECK(IsDebugBreakSlot()); |
rinfo()->PatchCodeWithCall( |
debug_info_->GetIsolate()->builtins()->Slot_DebugBreak()->entry(), |
Assembler::kDebugBreakSlotLength - Assembler::kCallSequenceLength); |
@@ -61,7 +61,7 @@ void BreakLocationIterator::SetDebugBreakAtSlot() { |
void BreakLocationIterator::ClearDebugBreakAtSlot() { |
- ASSERT(IsDebugBreakSlot()); |
+ DCHECK(IsDebugBreakSlot()); |
rinfo()->PatchCode(original_rinfo()->pc(), Assembler::kDebugBreakSlotLength); |
} |
@@ -86,13 +86,13 @@ static void Generate_DebugBreakCallHelper(MacroAssembler* masm, |
// Store the registers containing live values on the expression stack to |
// make sure that these are correctly updated during GC. Non object values |
// are stored as as two smis causing it to be untouched by GC. |
- ASSERT((object_regs & ~kJSCallerSaved) == 0); |
- ASSERT((non_object_regs & ~kJSCallerSaved) == 0); |
- ASSERT((object_regs & non_object_regs) == 0); |
+ DCHECK((object_regs & ~kJSCallerSaved) == 0); |
+ DCHECK((non_object_regs & ~kJSCallerSaved) == 0); |
+ DCHECK((object_regs & non_object_regs) == 0); |
for (int i = 0; i < kNumJSCallerSaved; i++) { |
int r = JSCallerSavedCode(i); |
Register reg = { r }; |
- ASSERT(!reg.is(kScratchRegister)); |
+ DCHECK(!reg.is(kScratchRegister)); |
if ((object_regs & (1 << r)) != 0) { |
__ Push(reg); |
} |
@@ -255,7 +255,7 @@ void DebugCodegen::GenerateSlot(MacroAssembler* masm) { |
__ bind(&check_codesize); |
__ RecordDebugBreakSlot(); |
__ Nop(Assembler::kDebugBreakSlotLength); |
- ASSERT_EQ(Assembler::kDebugBreakSlotLength, |
+ DCHECK_EQ(Assembler::kDebugBreakSlotLength, |
masm->SizeOfCodeGeneratedSince(&check_codesize)); |
} |