Revision: 9891
Author:   [email protected]
Date:     Mon Nov  7 02:31:54 2011
Log:      MIPS: Adding assertions to fast elements conversion.

Port r9875 (97dc1e0e).

BUG=
TEST=

Review URL: http://codereview.chromium.org/8467008
Patch from Gergely Kis <[email protected]>.
http://code.google.com/p/v8/source/detail?r=9891

Modified:
 /branches/bleeding_edge/src/mips/codegen-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/codegen-mips.cc Fri Oct 21 11:40:36 2011 +++ /branches/bleeding_edge/src/mips/codegen-mips.cc Mon Nov 7 02:31:54 2011
@@ -186,6 +186,10 @@

   // 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);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to