Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index de285bb2f1a0d575ee30b37404af0e6b8e9a1616..ea9cd3492b1122c6ff63eae112e10855a728d8f5 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1845,20 +1845,12 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
Label miss; |
Register receiver = LoadIC::ReceiverRegister(); |
- Register name = LoadIC::NameRegister(); |
- ASSERT(kind() == Code::LOAD_IC || |
- kind() == Code::KEYED_LOAD_IC); |
- |
- if (kind() == Code::KEYED_LOAD_IC) { |
- __ cmp(name, Operand(isolate()->factory()->prototype_string())); |
- __ b(ne, &miss); |
- } |
- |
- StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r3, r4, &miss); |
+ NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, r3, |
+ r4, &miss); |
__ bind(&miss); |
- StubCompiler::TailCallBuiltin( |
- masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); |
+ PropertyAccessCompiler::TailCallBuiltin( |
+ masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); |
} |