Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 58659241a66e1afd72f2a322347276dce878e546..fdda0ba77f31355f4d75da60b699c0248936021c 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -4410,6 +4410,19 @@ void MacroAssembler::CheckPageFlag( |
} |
+void MacroAssembler::CheckMapDeprecated(Handle<Map> map, |
+ Register scratch, |
+ Label* if_deprecated) { |
+ if (map->CanBeDeprecated()) { |
+ Move(scratch, map); |
+ movq(scratch, FieldOperand(scratch, Map::kBitField3Offset)); |
+ SmiToInteger32(scratch, scratch); |
+ and_(scratch, Immediate(Map::Deprecated::kMask)); |
+ j(not_zero, if_deprecated); |
+ } |
+} |
+ |
+ |
void MacroAssembler::JumpIfBlack(Register object, |
Register bitmap_scratch, |
Register mask_scratch, |