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