Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 258008196354f4d0eca69dc293c2f0f88687de98..955a87e1cddd563c87138b253d81cc260929ecce 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -2671,12 +2671,12 @@ void CallConstructStub::Generate(MacroAssembler* masm) { |
{ |
// Determine the delegate for the target (if any). |
FrameScope scope(masm, StackFrame::INTERNAL); |
- __ sll(a0, a0, kSmiTagSize); // Smi tagged. |
+ __ SmiTag(a0); |
__ Push(a0, a1); |
__ CallRuntime(Runtime::kGetConstructorDelegate, 1); |
__ mov(a1, v0); |
__ Pop(a0); |
- __ sra(a0, a0, kSmiTagSize); // Un-tag. |
+ __ SmiUntag(a0); |
} |
// The delegate is always a regular function. |
__ AssertFunction(a1); |