Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 9623b9a5203c5ccf44b4f27b23f81d917a22039a..4805d52e40668ad08b7a1bd3ed394ad465f7332c 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -826,6 +826,8 @@ void StubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
if (FLAG_track_fields && representation.IsSmi()) { |
__ JumpIfNotSmi(value_reg, miss_restore_name); |
+ } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
+ __ JumpIfSmi(value_reg, miss_restore_name); |
} else if (FLAG_track_double_fields && representation.IsDouble()) { |
Label do_store, heap_number; |
__ AllocateHeapNumber(storage_reg, scratch1, scratch2, slow); |
@@ -996,6 +998,8 @@ void StubCompiler::GenerateStoreField(MacroAssembler* masm, |
ASSERT(!representation.IsNone()); |
if (FLAG_track_fields && representation.IsSmi()) { |
__ JumpIfNotSmi(value_reg, miss_label); |
+ } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
+ __ JumpIfSmi(value_reg, miss_label); |
} else if (FLAG_track_double_fields && representation.IsDouble()) { |
// Load the double storage. |
if (index < 0) { |