Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index 9e7bf363d1dd531d7e27d6ba54c0657b5d05e27c..18d51046f21dc2ee1ab495f50f6229826abb2f4c 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -2374,6 +2374,18 @@ void MacroAssembler::AssertSmi(Register object) { |
} |
} |
+void MacroAssembler::AssertFixedArray(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ TestIfSmi(object); |
+ Check(ne, kOperandIsASmiAndNotAFixedArray, cr0); |
+ push(object); |
+ CompareObjectType(object, object, object, FIXED_ARRAY_TYPE); |
+ pop(object); |
+ Check(eq, kOperandIsNotAFixedArray); |
+ } |
+} |
+ |
void MacroAssembler::AssertFunction(Register object) { |
if (emit_debug_code()) { |
STATIC_ASSERT(kSmiTag == 0); |