Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index fde79df04c76aec63d22db311b238f09c8123735..38e0009090ff2da3ae63fdb01987ea6c971c335b 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -2586,7 +2586,9 @@ void MacroAssembler::AssertFunction(Register object) { |
STATIC_ASSERT(kSmiTag == 0); |
TestIfSmi(object, r0); |
Check(ne, kOperandIsASmiAndNotAFunction, cr0); |
- CompareObjectType(object, r0, r0, JS_FUNCTION_TYPE); |
+ push(object); |
+ CompareObjectType(object, object, object, JS_FUNCTION_TYPE); |
+ pop(object); |
Check(eq, kOperandIsNotAFunction); |
} |
} |