Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index cacc9217393727edf788b76b157640a5add5b30b..144df40b2619ffb745f55352baedb47639cfd0a5 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -1971,25 +1971,15 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
Label miss; |
- Register receiver; |
+ Register receiver = LoadIC::ReceiverRegister(); |
+ Register name = LoadIC::NameRegister(); |
+ |
+ ASSERT(kind() == Code::LOAD_IC || |
+ kind() == Code::KEYED_LOAD_IC); |
+ |
if (kind() == Code::KEYED_LOAD_IC) { |
- // ----------- S t a t e ------------- |
- // -- ra : return address |
- // -- a0 : key |
- // -- a1 : receiver |
- // ----------------------------------- |
- __ Branch(&miss, ne, a0, |
+ __ Branch(&miss, ne, name, |
Operand(isolate()->factory()->prototype_string())); |
- receiver = a1; |
- } else { |
- ASSERT(kind() == Code::LOAD_IC); |
- // ----------- S t a t e ------------- |
- // -- a2 : name |
- // -- ra : return address |
- // -- a0 : receiver |
- // -- sp[0] : receiver |
- // ----------------------------------- |
- receiver = a0; |
} |
StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, t0, &miss); |