Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index bd585946f11d546bed602bd8d338b4ca1f0f1c5c..fe6f1aefda4eb353c404aec997aae73cbcd31499 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -2642,6 +2642,16 @@ void MacroAssembler::CopyBytes(Register src, |
} |
+void MacroAssembler::CheckFastElements(Register map, |
+ 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)); |
+} |
+ |
+ |
void MacroAssembler::CheckMap(Register obj, |
Register scratch, |
Handle<Map> map, |