Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index a4e40a6a8dd3f843388b5ae88ebaae60e6af873a..d94f40e299dd47cbb312dee087f90c0cb18958ab 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -3911,6 +3911,12 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
if (!instr->hydrogen()->value()->range()->IsInSmiRange()) { |
DeoptimizeIf(lt, instr->environment(), scratch, Operand(zero_reg)); |
} |
+ } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
+ Register value = ToRegister(instr->value()); |
+ if (!instr->hydrogen()->value()->type().IsHeapObject()) { |
+ __ And(scratch, value, Operand(kSmiTagMask)); |
+ DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); |
+ } |
} else if (FLAG_track_double_fields && representation.IsDouble()) { |
ASSERT(transition.is_null()); |
ASSERT(instr->is_in_object()); |