Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index cfeecf1981938eef431fb48328121da1f3d2eff7..afea534e279d7357632bf0c31fee286644e04085 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -3259,6 +3259,25 @@ void MathPowStub::Generate(MacroAssembler* masm) { |
} |
+void ArrayLengthStub::Generate(MacroAssembler* masm) { |
+ // ----------- S t a t e ------------- |
+ // -- ecx : name |
+ // -- edx : receiver |
+ // -- esp[0] : return address |
+ // ----------------------------------- |
+ Label miss; |
+ |
+ if (kind() == Code::KEYED_LOAD_IC) { |
+ __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); |
+ __ j(not_equal, &miss); |
+ } |
+ |
+ StubCompiler::GenerateLoadArrayLength(masm, edx, eax, &miss); |
+ __ bind(&miss); |
+ StubCompiler::GenerateLoadMiss(masm, kind()); |
+} |
+ |
+ |
void StringLengthStub::Generate(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- ecx : name |