| Index: src/compiler/ia32/instruction-selector-ia32.cc
|
| diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc
|
| index 789189e4116b9521a31730ba62b50a231b6024f9..f067b4aef40fc40090395f9cc6c04f59a020800f 100644
|
| --- a/src/compiler/ia32/instruction-selector-ia32.cc
|
| +++ b/src/compiler/ia32/instruction-selector-ia32.cc
|
| @@ -96,7 +96,7 @@ void InstructionSelector::VisitStore(Node* node) {
|
| StoreRepresentation store_rep = OpParameter<StoreRepresentation>(node);
|
| MachineRepresentation rep = store_rep.rep;
|
| if (store_rep.write_barrier_kind == kFullWriteBarrier) {
|
| - ASSERT_EQ(kMachineTagged, rep);
|
| + DCHECK_EQ(kMachineTagged, rep);
|
| // TODO(dcarney): refactor RecordWrite function to take temp registers
|
| // and pass them here instead of using fixed regs
|
| // TODO(dcarney): handle immediate indices.
|
| @@ -106,7 +106,7 @@ void InstructionSelector::VisitStore(Node* node) {
|
| temps);
|
| return;
|
| }
|
| - ASSERT_EQ(kNoWriteBarrier, store_rep.write_barrier_kind);
|
| + DCHECK_EQ(kNoWriteBarrier, store_rep.write_barrier_kind);
|
| bool is_immediate = false;
|
| InstructionOperand* val;
|
| if (rep == kMachineFloat64) {
|
| @@ -191,10 +191,10 @@ static void VisitBinop(InstructionSelector* selector, Node* node,
|
| outputs[output_count++] = g.DefineAsRegister(cont->result());
|
| }
|
|
|
| - ASSERT_NE(0, input_count);
|
| - ASSERT_NE(0, output_count);
|
| - ASSERT_GE(ARRAY_SIZE(inputs), input_count);
|
| - ASSERT_GE(ARRAY_SIZE(outputs), output_count);
|
| + DCHECK_NE(0, input_count);
|
| + DCHECK_NE(0, output_count);
|
| + DCHECK_GE(ARRAY_SIZE(inputs), input_count);
|
| + DCHECK_GE(ARRAY_SIZE(outputs), output_count);
|
|
|
| Instruction* instr = selector->Emit(cont->Encode(opcode), output_count,
|
| outputs, input_count, inputs);
|
| @@ -441,7 +441,7 @@ static inline void VisitCompare(InstructionSelector* selector,
|
| g.Label(cont->true_block()),
|
| g.Label(cont->false_block()))->MarkAsControl();
|
| } else {
|
| - ASSERT(cont->IsSet());
|
| + DCHECK(cont->IsSet());
|
| // TODO(titzer): Needs byte register.
|
| selector->Emit(cont->Encode(opcode), g.DefineAsRegister(cont->result()),
|
| left, right);
|
| @@ -543,14 +543,14 @@ void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation,
|
|
|
| call_instr->MarkAsCall();
|
| if (deoptimization != NULL) {
|
| - ASSERT(continuation != NULL);
|
| + DCHECK(continuation != NULL);
|
| call_instr->MarkAsControl();
|
| }
|
|
|
| // Caller clean up of stack for C-style calls.
|
| if (descriptor->kind() == CallDescriptor::kCallAddress &&
|
| buffer.pushed_count > 0) {
|
| - ASSERT(deoptimization == NULL && continuation == NULL);
|
| + DCHECK(deoptimization == NULL && continuation == NULL);
|
| Emit(kPopStack | MiscField::encode(buffer.pushed_count), NULL);
|
| }
|
| }
|
|
|