Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 96e08df1cce9faba7fbe9c6e77050de86d6aeca5..b31940d6f64e2050c1c40f9bf35b3ceb97c635e2 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -558,22 +558,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)); |
} |