| Index: src/mips/stub-cache-mips.cc
|
| diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
|
| index 2c24da5eeb64929aa2502c3b1f181cffc53b7399..89f1b503ca6217874f3eafaca5d8b618d36ceef0 100644
|
| --- a/src/mips/stub-cache-mips.cc
|
| +++ b/src/mips/stub-cache-mips.cc
|
| @@ -271,10 +271,10 @@ void StubCompiler::GenerateLoadGlobalFunctionPrototype(MacroAssembler* masm,
|
| Register prototype) {
|
| // Load the global or builtins object from the current context.
|
| __ lw(prototype, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_INDEX)));
|
| - // Load the global context from the global or builtins object.
|
| + // Load the native context from the global or builtins object.
|
| __ lw(prototype,
|
| - FieldMemOperand(prototype, GlobalObject::kGlobalContextOffset));
|
| - // Load the function from the global context.
|
| + FieldMemOperand(prototype, GlobalObject::kNativeContextOffset));
|
| + // Load the function from the native context.
|
| __ lw(prototype, MemOperand(prototype, Context::SlotOffset(index)));
|
| // Load the initial map. The global functions all have initial maps.
|
| __ lw(prototype,
|
| @@ -297,7 +297,7 @@ void StubCompiler::GenerateDirectLoadGlobalFunctionPrototype(
|
| __ Branch(miss, ne, prototype, Operand(at));
|
| // Get the global function with the given index.
|
| Handle<JSFunction> function(
|
| - JSFunction::cast(isolate->global_context()->get(index)));
|
| + JSFunction::cast(isolate->native_context()->get(index)));
|
| // Load its initial map. The global functions all have initial maps.
|
| __ li(prototype, Handle<Map>(function->initial_map()));
|
| // Load the prototype from the initial map.
|
|
|