Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index 789fa5d575d09efb569e6af647c1b94446e6f37c..79447bf91abe685b5f82323a1875ecd6b3e55b56 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -2925,6 +2925,18 @@ void MacroAssembler::JumpIfEitherSmi(Register reg1, Register reg2, |
JumpIfSmi(reg2, on_either_smi); |
} |
+void MacroAssembler::AssertNotNumber(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ TestIfSmi(object); |
+ Check(ne, kOperandIsANumber, cr0); |
JoranSiu
2016/03/22 20:05:59
We probably should clean up the conditional reg pa
|
+ push(object); |
+ CompareObjectType(object, object, object, HEAP_NUMBER_TYPE); |
+ pop(object); |
+ Check(ne, kOperandIsANumber); |
+ } |
+} |
+ |
void MacroAssembler::AssertNotSmi(Register object) { |
if (emit_debug_code()) { |
STATIC_ASSERT(kSmiTag == 0); |