Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 96ca1ba2d73dadd5d39d827f53757dba58593a73..4178657006e2aec7037ee64569cae800305520e8 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -885,22 +885,14 @@ void MathPowStub::Generate(MacroAssembler* masm) { |
void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
- // ----------- S t a t e ------------- |
- // -- ecx : name |
- // -- edx : receiver |
- // -- esp[0] : return address |
- // ----------------------------------- |
Label miss; |
+ Register receiver = LoadIC::ReceiverRegister(); |
- if (kind() == Code::KEYED_LOAD_IC) { |
- __ cmp(ecx, Immediate(isolate()->factory()->prototype_string())); |
- __ j(not_equal, &miss); |
- } |
- |
- StubCompiler::GenerateLoadFunctionPrototype(masm, edx, eax, ebx, &miss); |
+ NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, eax, |
+ ebx, &miss); |
__ bind(&miss); |
- StubCompiler::TailCallBuiltin( |
- masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); |
+ PropertyAccessCompiler::TailCallBuiltin( |
+ masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); |
} |