| Index: src/mips/code-stubs-mips.cc | 
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc | 
| index 2e17133b9967addbf3f211d4b6708830d334a78e..060991c0494f10b5548217e9e77423f26e727e34 100644 | 
| --- a/src/mips/code-stubs-mips.cc | 
| +++ b/src/mips/code-stubs-mips.cc | 
| @@ -4424,6 +4424,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { | 
| // Cache the called function in a global property cell.  Cache states | 
| // are uninitialized, monomorphic (indicated by a JSFunction), and | 
| // megamorphic. | 
| +  // a0 : number of arguments to the construct function | 
| // a1 : the function to call | 
| // a2 : cache cell for call target | 
| Label initialize, done, miss, megamorphic, not_array_function; | 
| @@ -4444,9 +4445,6 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { | 
| // If we didn't have a matching function, and we didn't find the megamorph | 
| // sentinel, then we have in the cell either some other function or an | 
| // AllocationSite. Do a map check on the object in a3. | 
| -  Handle<Map> allocation_site_map( | 
| -      masm->isolate()->heap()->allocation_site_map(), | 
| -      masm->isolate()); | 
| __ lw(t1, FieldMemOperand(a3, 0)); | 
| __ LoadRoot(at, Heap::kAllocationSiteMapRootIndex); | 
| __ Branch(&miss, ne, t1, Operand(at)); | 
| @@ -4485,6 +4483,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { | 
| 1 << 5  |  // a1 | 
| 1 << 6;    // a2 | 
|  | 
| +    // Arguments register must be smi-tagged to call out. | 
| __ SmiTag(a0); | 
| __ MultiPush(kSavedRegs); | 
|  | 
|  |