| Index: src/mips64/stub-cache-mips64.cc
|
| diff --git a/src/mips64/stub-cache-mips64.cc b/src/mips64/stub-cache-mips64.cc
|
| index 23292e8b7940f4f61f5589790c39a2f4f4cb4014..89b4a3cf391066014f215524d92f07cac21d6909 100644
|
| --- a/src/mips64/stub-cache-mips64.cc
|
| +++ b/src/mips64/stub-cache-mips64.cc
|
| @@ -852,6 +852,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);
|
|
|