Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 6940a61b0dc98f290975112391fc30bd8dc129bb..ea1b4644f2a3fa4bb4c57304601347cfc0509318 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -1023,14 +1023,14 @@ Reduction JSTypedLowering::ReduceJSLoadDynamicGlobal(Node* node) { |
javascript()->LoadContext(0, Context::GLOBAL_OBJECT_INDEX, true), context, |
context, effect); |
Node* fast = graph()->NewNode( |
- javascript()->LoadGlobal(name, access.feedback(), access.mode()), context, |
- global, vector, context, state1, state2, global, check_true); |
+ javascript()->LoadGlobal(name, access.feedback(), access.typeof_mode()), |
+ context, global, vector, context, state1, state2, global, check_true); |
// Slow case, because variable potentially shadowed. Perform dynamic lookup. |
uint32_t check_bitset = DynamicGlobalAccess::kFullCheckRequired; |
Node* slow = graph()->NewNode( |
javascript()->LoadDynamicGlobal(access.name(), check_bitset, |
- access.feedback(), access.mode()), |
+ access.feedback(), access.typeof_mode()), |
vector, context, context, state1, state2, effect, check_false); |
// Replace value, effect and control uses accordingly. |