Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 092aee5d47b5aed45eb1f1562021e92efd26a667..31fc179fa214d713ed8ba428d822533ae652446d 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2882,6 +2882,18 @@ void MacroAssembler::CheckPageFlagForMap( |
} |
+void MacroAssembler::CheckMapDeprecated(Handle<Map> map, |
+ Register scratch, |
+ Label* if_deprecated) { |
+ if (map->CanBeDeprecated()) { |
+ mov(scratch, map); |
+ mov(scratch, FieldOperand(scratch, Map::kBitField3Offset)); |
+ and_(scratch, Immediate(Smi::FromInt(Map::Deprecated::kMask))); |
+ j(not_zero, if_deprecated); |
+ } |
+} |
+ |
+ |
void MacroAssembler::JumpIfBlack(Register object, |
Register scratch0, |
Register scratch1, |