Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 4d02475c2de7088531a207b2e1c6d8395a49691b..c57d752780c5346668db995a76f2ace7e3651e73 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1781,6 +1781,17 @@ void MacroAssembler::AssertNotSmi(Register object, BailoutReason reason) { |
} |
} |
+void MacroAssembler::AssertFixedArray(Register object) { |
+ if (emit_debug_code()) { |
+ AssertNotSmi(object, kOperandIsASmiAndNotAFixedArray); |
+ |
+ UseScratchRegisterScope temps(this); |
+ Register temp = temps.AcquireX(); |
+ |
+ CompareObjectType(object, temp, temp, FIXED_ARRAY_TYPE); |
+ Check(eq, kOperandIsNotAFixedArray); |
+ } |
+} |
void MacroAssembler::AssertFunction(Register object) { |
if (emit_debug_code()) { |