| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index a22e7068e745c964c03a83502756cec41a7a655b..983c405be52a3baebb6ae48a7b3756f078c64abe 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -33,6 +33,7 @@
|
| #include "code-stubs.h"
|
| #include "codegen.h"
|
| #include "regexp-macro-assembler.h"
|
| +#include "stub-cache.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -4543,6 +4544,37 @@ void InstanceofStub::Generate(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| +void StringLengthStub::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()->length_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::GenerateLoadStringLength(masm, receiver, a3, t0, &miss,
|
| + support_wrapper_);
|
| +
|
| + __ bind(&miss);
|
| + StubCompiler::GenerateLoadMiss(masm, kind());
|
| +}
|
| +
|
| +
|
| Register InstanceofStub::left() { return a0; }
|
|
|
|
|
|
|