Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 185c3a56a518e8039c7edda6358de4d135eec815..64f42f49ee21948aae4fea68997b043461127ced 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2601,6 +2601,21 @@ void MacroAssembler::ClampDoubleToUint8(XMMRegister input_reg, |
} |
+void MacroAssembler::DispatchMap(Register obj, |
+ Handle<Map> map, |
+ Handle<Code> success, |
+ SmiCheckType smi_check_type) { |
+ Label fail; |
+ if (smi_check_type == DO_SMI_CHECK) { |
+ JumpIfSmi(obj, &fail); |
+ } |
+ Cmp(FieldOperand(obj, HeapObject::kMapOffset), map); |
+ j(equal, success, RelocInfo::CODE_TARGET); |
+ |
+ bind(&fail); |
+} |
+ |
+ |
void MacroAssembler::AbortIfNotNumber(Register object) { |
Label ok; |
Condition is_smi = CheckSmi(object); |