| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index c9e68ee248b22427c3cbbfae733eb4ef444cd4fa..a550484fb509e13f7428f05bf5f2607a3910bdf5 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -4818,9 +4818,10 @@ void FullCodeGenerator::PushFunctionArgumentForContextAllocation() {
|
| closure_scope->is_module_scope()) {
|
| // Contexts nested in the native context have a canonical empty function
|
| // as their closure, not the anonymous closure containing the global
|
| - // code. Pass a smi sentinel and let the runtime look up the empty
|
| - // function.
|
| - __ li(at, Operand(Smi::FromInt(0)));
|
| + // code.
|
| + __ lw(at, GlobalObjectOperand());
|
| + __ lw(at, FieldMemOperand(at, JSGlobalObject::kNativeContextOffset));
|
| + __ lw(at, ContextOperand(at, Context::CLOSURE_INDEX));
|
| } else if (closure_scope->is_eval_scope()) {
|
| // Contexts created by a call to eval have the same closure as the
|
| // context calling eval, not the anonymous closure containing the eval
|
|
|