| Index: src/mips/stub-cache-mips.cc
|
| diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
|
| index 729b684e5d2839053bdbb63787a6e5499a6b977f..1ace4bca62c6d2b17f19de5202684c70a18a48da 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -848,6 +848,14 @@ void NamedLoadHandlerCompiler::GenerateLoadField(
|
| }
|
|
|
|
|
| +void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg,
|
| + int constant_index) {
|
| + if (!reg.is(receiver())) __ mov(receiver(), reg);
|
| + LoadConstantStub stub(isolate(), constant_index);
|
| + GenerateTailCall(masm(), stub.GetCode());
|
| +}
|
| +
|
| +
|
| void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) {
|
| // Return the constant value.
|
| __ li(v0, value);
|
|
|