Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index 3f8d92275f53e57acc306c96db8def46408affff..a08daa7df1bddb67430600121196f7c863c4ff82 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -3402,6 +3402,18 @@ void MacroAssembler::CheckPageFlag( |
} |
+void MacroAssembler::CheckMapDeprecated(Handle<Map> map, |
+ Register scratch, |
+ Label* if_deprecated) { |
+ if (map->CanBeDeprecated()) { |
+ mov(scratch, Operand(map)); |
+ ldr(scratch, FieldMemOperand(scratch, Map::kBitField3Offset)); |
+ tst(scratch, Operand(Smi::FromInt(Map::Deprecated::kMask))); |
+ b(ne, if_deprecated); |
+ } |
+} |
+ |
+ |
void MacroAssembler::JumpIfBlack(Register object, |
Register scratch0, |
Register scratch1, |