Index: src/mips64/builtins-mips64.cc |
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc |
index a031d67090cdf7f65c88b5f753d0f26dca2b359b..b55b77c51158bf82d61d1faf8eafcdd073a4e6c8 100644 |
--- a/src/mips64/builtins-mips64.cc |
+++ b/src/mips64/builtins-mips64.cc |
@@ -179,6 +179,8 @@ void Builtins::Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind) { |
{ |
// Parameter is not a Number, use the ToNumberStub to convert it. |
FrameScope scope(masm, StackFrame::INTERNAL); |
+ __ SmiTag(a0); |
+ __ SmiTag(a3); |
__ Push(a0, a1, a3); |
__ mov(a0, a2); |
ToNumberStub stub(masm->isolate()); |
@@ -195,6 +197,8 @@ void Builtins::Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind) { |
__ SmiToDoubleFPURegister(a1, f0, a4); |
__ bind(&done_restore); |
} |
+ __ SmiUntag(a3); |
+ __ SmiUntag(a0); |
} |
__ jmp(&convert); |
__ bind(&convert_number); |