| Index: src/full-codegen/arm64/full-codegen-arm64.cc
|
| diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| index 7f77cdee32ed7e810853c573b00021261ab2782a..1b0f8626bf8022b926b5d99d6a3b654ee7123a42 100644
|
| --- a/src/full-codegen/arm64/full-codegen-arm64.cc
|
| +++ b/src/full-codegen/arm64/full-codegen-arm64.cc
|
| @@ -1187,27 +1187,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;
|
| - __ Mov(next, current);
|
| -
|
| - __ Bind(&loop);
|
| - // Terminate at native context.
|
| - __ Ldr(temp, FieldMemOperand(next, HeapObject::kMapOffset));
|
| - __ JumpIfRoot(temp, Heap::kNativeContextMapRootIndex, &fast);
|
| - // Check that extension is "the hole".
|
| - __ Ldr(temp, ContextMemOperand(next, Context::EXTENSION_INDEX));
|
| - __ JumpIfNotRoot(temp, Heap::kTheHoleValueRootIndex, slow);
|
| - // Load next context in chain.
|
| - __ Ldr(next, ContextMemOperand(next, Context::PREVIOUS_INDEX));
|
| - __ B(&loop);
|
| - __ Bind(&fast);
|
| - }
|
| -
|
| // All extension objects were empty and it is safe to use a normal global
|
| // load machinery.
|
| EmitGlobalVariableLoad(proxy, typeof_mode);
|
|
|