Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index cad08049f2ab17218e444c576f265ab03e07ad0a..9dc042bf41d10ab44f6b22f7dc40ee41c94b6468 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -5180,10 +5180,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)); |
} |
} |