Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index eca224b6fd15463d162aa6ebeea1b4357f5b965e..1d4025f26b8a69d2011617322200c6cb8044ded6 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -2598,6 +2598,17 @@ void MacroAssembler::AssertSmi(Register object) { |
} |
} |
+void MacroAssembler::AssertFixedArray(Register object) { |
+ if (emit_debug_code()) { |
+ STATIC_ASSERT(kSmiTag == 0); |
+ TestIfSmi(object, r0); |
+ 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()) { |