Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 5fbace4b25fcc9aa92278b51c26d5cf57f57af01..701420bfd653869cd172ad680538d9012411ba1a 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -5995,6 +5995,15 @@ void MacroAssembler::JumpIfEitherSmi(Register reg1, |
JumpIfSmi(at, on_either_smi); |
} |
+void MacroAssembler::AssertNotNumber(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ andi(at, object, kSmiTagMask); |
+ Check(ne, kOperandIsANumber, at, Operand(zero_reg)); |
+ GetObjectType(object, t8, t8); |
+ Check(ne, kOperandIsNotANumber, t8, Operand(HEAP_NUMBER_TYPE)); |
+ } |
+} |
void MacroAssembler::AssertNotSmi(Register object) { |
if (emit_debug_code()) { |