X87: Initial switch to Chromium-style CHECK_* and DCHECK_* macros

port 0deaa4b629 (r26340)

     (code change in full-codegen-x87.cc is covered by r26340 ).

original commit message:

   Initial switch to Chromium-style CHECK_* and DCHECK_* macros.

BUG=

Review URL: https://codereview.chromium.org/903353002

Cr-Commit-Position: refs/heads/master@{#26504}
This commit is contained in:
chunyang.dai 2015-02-07 01:09:48 -08:00 committed by Commit bot
parent db379e19c8
commit 30e02390f1
2 changed files with 2 additions and 2 deletions

View File

@ -1381,7 +1381,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) {
// If either is a Smi (we know that not both are), then they can only // If either is a Smi (we know that not both are), then they can only
// be equal if the other is a HeapNumber. If so, use the slow case. // be equal if the other is a HeapNumber. If so, use the slow case.
STATIC_ASSERT(kSmiTag == 0); STATIC_ASSERT(kSmiTag == 0);
DCHECK_EQ(0, Smi::FromInt(0)); DCHECK_EQ(static_cast<Smi*>(0), Smi::FromInt(0));
__ mov(ecx, Immediate(kSmiTagMask)); __ mov(ecx, Immediate(kSmiTagMask));
__ and_(ecx, eax); __ and_(ecx, eax);
__ test(ecx, edx); __ test(ecx, edx);

View File

@ -4815,7 +4815,7 @@ void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) {
__ mov(FieldOperand(object_reg, HeapObject::kMapOffset), __ mov(FieldOperand(object_reg, HeapObject::kMapOffset),
Immediate(to_map)); Immediate(to_map));
// Write barrier. // Write barrier.
DCHECK_NE(instr->temp(), NULL); DCHECK_NOT_NULL(instr->temp());
__ RecordWriteForMap(object_reg, to_map, new_map_reg, __ RecordWriteForMap(object_reg, to_map, new_map_reg,
ToRegister(instr->temp()), kDontSaveFPRegs); ToRegister(instr->temp()), kDontSaveFPRegs);
} else { } else {