| Index: src/x64/code-stubs-x64.cc | 
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc | 
| index e557285a484e925c3d3561adaad37441b788ff2e..3b1ae11de244d079a5140d75dc8f724b7a94031a 100644 | 
| --- a/src/x64/code-stubs-x64.cc | 
| +++ b/src/x64/code-stubs-x64.cc | 
| @@ -2360,6 +2360,33 @@ void MathPowStub::Generate(MacroAssembler* masm) { | 
| } | 
|  | 
|  | 
| +void ArrayLengthStub::Generate(MacroAssembler* masm) { | 
| +  Label miss; | 
| +  Register receiver; | 
| +  if (kind() == Code::KEYED_LOAD_IC) { | 
| +    // ----------- S t a t e ------------- | 
| +    //  -- rax    : key | 
| +    //  -- rdx    : receiver | 
| +    //  -- rsp[0] : return address | 
| +    // ----------------------------------- | 
| +    __ Cmp(rax, masm->isolate()->factory()->length_symbol()); | 
| +    receiver = rdx; | 
| +  } else { | 
| +    ASSERT(kind() == Code::LOAD_IC); | 
| +    // ----------- S t a t e ------------- | 
| +    //  -- rax    : receiver | 
| +    //  -- rcx    : name | 
| +    //  -- rsp[0] : return address | 
| +    // ----------------------------------- | 
| +    receiver = rax; | 
| +  } | 
| + | 
| +  StubCompiler::GenerateLoadArrayLength(masm, receiver, r8, &miss); | 
| +  __ bind(&miss); | 
| +  StubCompiler::GenerateLoadMiss(masm, kind()); | 
| +} | 
| + | 
| + | 
| void StringLengthStub::Generate(MacroAssembler* masm) { | 
| Label miss; | 
| Register receiver; | 
|  |