Commit 30e02390 authored by chunyang.dai's avatar chunyang.dai Committed by Commit bot

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

port 0deaa4b6 (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}
parent db379e19
...@@ -1381,7 +1381,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { ...@@ -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);
......
...@@ -4815,7 +4815,7 @@ void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment