Index: src/x64/macro-assembler-x64.cc |
=================================================================== |
--- src/x64/macro-assembler-x64.cc (revision 3859) |
+++ src/x64/macro-assembler-x64.cc (working copy) |
@@ -1598,6 +1598,17 @@ |
} |
+void MacroAssembler::AbortIfNotNumber(Register object, const char* msg) { |
+ Label ok; |
+ Condition is_smi = CheckSmi(object); |
+ j(is_smi, &ok); |
+ Cmp(FieldOperand(object, HeapObject::kMapOffset), |
+ Factory::heap_number_map()); |
+ Assert(equal, msg); |
+ bind(&ok); |
+} |
+ |
+ |
Condition MacroAssembler::IsObjectStringType(Register heap_object, |
Register map, |
Register instance_type) { |