| Index: src/full-codegen/mips64/full-codegen-mips64.cc
|
| diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| index 5db6f17ef92a71b16a587182cbbfbe28f9ea2a40..eaae5268ee6dbb652ff6b8f2eba86f2942c25f9b 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -1195,29 +1195,10 @@ void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy,
|
| }
|
| // If no outer scope calls eval, we do not need to check more
|
| // context extensions.
|
| - if (!s->outer_scope_calls_sloppy_eval() || s->is_eval_scope()) break;
|
| + if (!s->outer_scope_calls_sloppy_eval()) break;
|
| s = s->outer_scope();
|
| }
|
|
|
| - if (s->is_eval_scope()) {
|
| - Label loop, fast;
|
| - if (!current.is(next)) {
|
| - __ Move(next, current);
|
| - }
|
| - __ bind(&loop);
|
| - // Terminate at native context.
|
| - __ ld(temp, FieldMemOperand(next, HeapObject::kMapOffset));
|
| - __ LoadRoot(a4, Heap::kNativeContextMapRootIndex);
|
| - __ Branch(&fast, eq, temp, Operand(a4));
|
| - // Check that extension is "the hole".
|
| - __ ld(temp, ContextMemOperand(next, Context::EXTENSION_INDEX));
|
| - __ JumpIfNotRoot(temp, Heap::kTheHoleValueRootIndex, slow);
|
| - // Load next context in chain.
|
| - __ ld(next, ContextMemOperand(next, Context::PREVIOUS_INDEX));
|
| - __ Branch(&loop);
|
| - __ bind(&fast);
|
| - }
|
| -
|
| // All extension objects were empty and it is safe to use a normal global
|
| // load machinery.
|
| EmitGlobalVariableLoad(proxy, typeof_mode);
|
|
|