Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 876a4563591cf7999a8aead27b3610d31123a8be..3fc0496450e5ee9550d0dbc54d7fef9fc2759a84 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -454,6 +454,7 @@ void JSGenericLowering::LowerJSLoadDynamicGlobal(Node* node) { |
: Runtime::kLoadLookupSlotNoReferenceError; |
Node* projection = graph()->NewNode(common()->Projection(0), node); |
NodeProperties::ReplaceWithValue(node, projection, node, node); |
+ node->RemoveInput(NodeProperties::FirstFrameStateIndex(node) + 1); |
node->InsertInput(zone(), 1, jsgraph()->Constant(access.name())); |
ReplaceWithRuntimeCall(node, function_id); |
projection->ReplaceInput(0, node); |