Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index 821229d1952b9037490404761dddedb635c8cd13..0c2efd27bfd766c089c6c944d45a0e0289998f43 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -907,6 +907,15 @@ void MacroAssembler::AssertNumber(Register object) { |
} |
} |
+void MacroAssembler::AssertNotNumber(Register object) { |
+ if (emit_debug_code()) { |
+ test(object, Immediate(kSmiTagMask)); |
+ Check(not_equal, kOperandIsANumber); |
+ cmp(FieldOperand(object, HeapObject::kMapOffset), |
+ isolate()->factory()->heap_number_map()); |
+ Check(not_equal, kOperandIsANumber); |
+ } |
+} |
void MacroAssembler::AssertSmi(Register object) { |
if (emit_debug_code()) { |