Revision: 13420
Author:   [email protected]
Date:     Fri Jan 18 00:53:11 2013
Log:      MIPS: Fix if condition in DoTransitionElementsKind.

This commit fixes a couple of mjsunit test failures in debug mode,
which were introduced by commit r11636 (fe0c6bbe).

BUG=
TEST=

Review URL: https://codereview.chromium.org/11941004
Patch from Akos Palfi <[email protected]>.
http://code.google.com/p/v8/source/detail?r=13420

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

=======================================
--- /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Thu Jan 17 08:09:08 2013 +++ /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Fri Jan 18 00:53:11 2013
@@ -4218,7 +4218,7 @@
   __ Branch(&not_applicable, ne, scratch, Operand(from_map));

   __ li(new_map_reg, Operand(to_map));
- if (IsFastSmiElementsKind(from_kind) && IsFastObjectElementsKind(to_kind)) {
+  if (IsSimpleMapChangeTransition(from_kind, to_kind)) {
__ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
     // Write barrier.
     __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,

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

Reply via email to