Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 7e3e19d8957f192d552afbbf78bd068bdd2f6883..47a82d21850115b3c660f368ae8c68abceb82eb4 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -201,7 +201,6 @@ void JSGenericLowering::LowerJSLoadNamed(Node* node) { |
void JSGenericLowering::LowerJSLoadGlobal(Node* node) { |
Node* closure = NodeProperties::GetValueInput(node, 0); |
- Node* context = NodeProperties::GetContextInput(node); |
Node* effect = NodeProperties::GetEffectInput(node); |
Node* control = NodeProperties::GetControlInput(node); |
CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
@@ -218,21 +217,9 @@ void JSGenericLowering::LowerJSLoadGlobal(Node* node) { |
jsgraph()->IntPtrConstant(LiteralsArray::kFeedbackVectorOffset - |
kHeapObjectTag), |
effect, control); |
- // Load global object from the context. |
- Node* native_context = effect = |
- graph()->NewNode(machine()->Load(MachineType::AnyTagged()), context, |
- jsgraph()->IntPtrConstant( |
- Context::SlotOffset(Context::NATIVE_CONTEXT_INDEX)), |
- effect, control); |
- Node* global = effect = graph()->NewNode( |
- machine()->Load(MachineType::AnyTagged()), native_context, |
- jsgraph()->IntPtrConstant(Context::SlotOffset(Context::EXTENSION_INDEX)), |
- effect, control); |
- node->InsertInput(zone(), 0, global); |
- node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); |
- node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); |
- node->ReplaceInput(3, vector); |
- node->ReplaceInput(6, effect); |
+ node->InsertInput(zone(), 0, jsgraph()->SmiConstant(p.feedback().index())); |
+ node->ReplaceInput(1, vector); |
+ node->ReplaceInput(4, effect); |
ReplaceWithStubCall(node, callable, flags); |
} |