Index: src/mips/codegen-mips.cc |
diff --git a/src/mips/codegen-mips.cc b/src/mips/codegen-mips.cc |
index e9fe2324ead4984250f471cdb7425da56f7a1b3c..c94e0fa52939947439062bd13e7dd57a325de1dd 100644 |
--- a/src/mips/codegen-mips.cc |
+++ b/src/mips/codegen-mips.cc |
@@ -186,6 +186,10 @@ void ElementsTransitionGenerator::GenerateSmiOnlyToDouble( |
// Hole found, store the-hole NaN. |
__ bind(&convert_hole); |
+ if (FLAG_debug_code) { |
+ __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
+ __ Assert(eq, "object found in smi-only array", at, Operand(t5)); |
+ } |
__ sw(t0, MemOperand(t3)); // mantissa |
__ sw(t1, MemOperand(t3, kIntSize)); // exponent |
__ Addu(t3, t3, kDoubleSize); |