Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 9d2f0391dac4f2397153fd59bf7b0a9e8b2d73df..4494326077fb8c0352cb757988f4639c61458286 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -4573,6 +4573,35 @@ void ArrayLengthStub::Generate(MacroAssembler* masm) { |
} |
+void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
+ Label miss; |
+ Register receiver; |
+ if (kind() == Code::KEYED_LOAD_IC) { |
+ // ----------- S t a t e ------------- |
+ // -- ra : return address |
+ // -- a0 : key |
+ // -- a1 : receiver |
+ // ----------------------------------- |
+ __ Branch(&miss, ne, a0, |
+ Operand(masm->isolate()->factory()->prototype_symbol())); |
+ 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); |
+ __ bind(&miss); |
+ StubCompiler::GenerateLoadMiss(masm, kind()); |
+} |
+ |
+ |
void StringLengthStub::Generate(MacroAssembler* masm) { |
Label miss; |
Register receiver; |