Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index ae30d5df392240a626f1562b8617402160aeaa76..a78de986e7cd63269b020aeff3c47e7f0de241dc 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -1970,6 +1970,13 @@ void MacroAssembler::AbortIfSmi(Register object) { |
} |
+void MacroAssembler::AbortIfNotSmi(Register object) { |
+ ASSERT_EQ(0, kSmiTag); |
+ tst(object, Operand(kSmiTagMask)); |
+ Assert(eq, "Operand is not smi"); |
+} |
+ |
+ |
void MacroAssembler::JumpIfNonSmisNotBothSequentialAsciiStrings( |
Register first, |
Register second, |