Revision: 8404
Author: [email protected]
Date: Fri Jun 24 01:26:47 2011
Log: MIPS: Fix a bug in MacroAssembler::CheckFastElements.
This fixes 3 mjsunit tests when running with --stress-opt: object-freeze,
object-prevent-extensions, object-seal.
Original commit was 54ce3d60 (r8176).
BUG=
TEST=
Review URL: http://codereview.chromium.org//7236024
Patch from Paul Lind <[email protected]>.
http://code.google.com/p/v8/source/detail?r=8404
Modified:
/branches/bleeding_edge/src/mips/macro-assembler-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Thu Jun 9
10:44:50 2011
+++ /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Fri Jun 24
01:26:47 2011
@@ -2657,9 +2657,8 @@
Register scratch,
Label* fail) {
STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0);
- lbu(scratch, FieldMemOperand(map, Map::kBitField2Offset));
- And(scratch, scratch, Operand(Map::kMaximumBitField2FastElementValue));
- Branch(fail, hi, scratch, Operand(zero_reg));
+ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
+ Branch(fail, hi, scratch,
Operand(Map::kMaximumBitField2FastElementValue));
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev