| Index: src/ic/mips/handler-compiler-mips.cc
|
| diff --git a/src/ic/mips/handler-compiler-mips.cc b/src/ic/mips/handler-compiler-mips.cc
|
| index 32a37e9d159594978fbaa2c70b07131d1df283ae..ee8a906ff7956c9048fb003b7a8e3dfbaf2963ec 100644
|
| --- a/src/ic/mips/handler-compiler-mips.cc
|
| +++ b/src/ic/mips/handler-compiler-mips.cc
|
| @@ -167,7 +167,10 @@
|
|
|
| void NamedLoadHandlerCompiler::GenerateDirectLoadGlobalFunctionPrototype(
|
| MacroAssembler* masm, int index, Register result, Label* miss) {
|
| - __ LoadNativeContextSlot(index, result);
|
| + const int offset = Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX);
|
| + __ lw(result, MemOperand(cp, offset));
|
| + __ lw(result, FieldMemOperand(result, JSGlobalObject::kNativeContextOffset));
|
| + __ lw(result, MemOperand(result, Context::SlotOffset(index)));
|
| // Load its initial map. The global functions all have initial maps.
|
| __ lw(result,
|
| FieldMemOperand(result, JSFunction::kPrototypeOrInitialMapOffset));
|
|
|