Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index afea534e279d7357632bf0c31fee286644e04085..4e4a60923228d28b659bf2f8d24ca1ec0802cf4b 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -3278,6 +3278,25 @@ void ArrayLengthStub::Generate(MacroAssembler* masm) { |
} |
+void FunctionPrototypeStub::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()->prototype_symbol())); |
+ __ j(not_equal, &miss); |
+ } |
+ |
+ StubCompiler::GenerateLoadFunctionPrototype(masm, edx, eax, ebx, &miss); |
+ __ bind(&miss); |
+ StubCompiler::GenerateLoadMiss(masm, kind()); |
+} |
+ |
+ |
void StringLengthStub::Generate(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- ecx : name |