Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index d1f8bf396e2dc93ca5eb71fb59f33101a4f30b14..602cb54f3c787ece26faeb32ab16c3398154234b 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -5378,10 +5378,8 @@ void MacroAssembler::AssertFunction(Register object) { |
STATIC_ASSERT(kSmiTag == 0); |
SmiTst(object, t0); |
Check(ne, kOperandIsASmiAndNotAFunction, t0, Operand(zero_reg)); |
- push(object); |
- GetObjectType(object, object, object); |
- pop(object); |
- Check(eq, kOperandIsNotAFunction, object, Operand(JS_FUNCTION_TYPE)); |
+ GetObjectType(object, t0, t0); |
+ Check(eq, kOperandIsNotAFunction, t0, Operand(JS_FUNCTION_TYPE)); |
} |
} |