| Index: src/compiler/js-typed-lowering.cc
|
| diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc
|
| index a373c17d7a60fe6c2576752f58502576bed6349d..4ba6f6a3e5f01a392ada2b18f963ce2f4be1bfd7 100644
|
| --- a/src/compiler/js-typed-lowering.cc
|
| +++ b/src/compiler/js-typed-lowering.cc
|
| @@ -1042,13 +1042,10 @@ Reduction JSTypedLowering::ReduceJSLoadDynamicGlobal(Node* node) {
|
| }
|
|
|
| // Fast case, because variable is not shadowed. Perform global object load.
|
| - Node* global = graph()->NewNode(
|
| - javascript()->LoadContext(0, Context::GLOBAL_OBJECT_INDEX, true), context,
|
| - context, effect);
|
| Node* fast = graph()->NewNode(
|
| javascript()->LoadGlobal(access.name(), access.feedback(),
|
| access.typeof_mode()),
|
| - context, global, vector, context, state1, state2, global, check_true);
|
| + vector, context, state1, state2, effect, check_true);
|
|
|
| // Slow case, because variable potentially shadowed. Perform dynamic lookup.
|
| uint32_t check_bitset = DynamicGlobalAccess::kFullCheckRequired;
|
|
|