Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 80ab31a5e46124d236573fe2f325d52571214e95..5b36cc2fb30faf66ddd986a942999ff60cdc7af3 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -507,6 +507,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; |
__ LoadRoot(scratch3, Heap::kHeapNumberMapRootIndex); |
@@ -677,6 +679,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) { |