Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 220d9fe0c7d929e6231be5e316c0fd778a13e2a8..301e92f23d4653b12c74030067544469fa2a8fbc 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -5135,6 +5135,18 @@ void MacroAssembler::CheckPageFlag( |
} |
+void MacroAssembler::CheckMapDeprecated(Handle<Map> map, |
+ Register scratch, |
+ Label* if_deprecated) { |
+ if (map->CanBeDeprecated()) { |
+ li(scratch, Operand(map)); |
+ lw(scratch, FieldMemOperand(scratch, Map::kBitField3Offset)); |
+ And(scratch, scratch, Operand(Smi::FromInt(Map::Deprecated::kMask))); |
+ Branch(if_deprecated, ne, scratch, Operand(zero_reg)); |
+ } |
+} |
+ |
+ |
void MacroAssembler::JumpIfBlack(Register object, |
Register scratch0, |
Register scratch1, |