Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index fa6c710c279c3e0821766204958224c27c0bedd4..b06a9627c8f8b34577b76b218744052b32edd1a7 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -3875,6 +3875,15 @@ void MacroAssembler::AssertNumber(Register object) { |
} |
} |
+void MacroAssembler::AssertNotNumber(Register object) { |
+ if (emit_debug_code()) { |
+ Condition is_smi = CheckSmi(object); |
+ Check(NegateCondition(is_smi), kOperandIsANumber); |
+ Cmp(FieldOperand(object, HeapObject::kMapOffset), |
+ isolate()->factory()->heap_number_map()); |
+ Check(equal, kOperandIsANumber); |
+ } |
+} |
void MacroAssembler::AssertNotSmi(Register object) { |
if (emit_debug_code()) { |