Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 96b24cf1a67945810b5f81a754005c645ee8db1f..6738ddc165164fc2b193d4b12e15267accb1e5ef 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -286,40 +286,12 @@ void JSGenericLowering::LowerJSOrdinaryHasInstance(Node* node) { |
} |
void JSGenericLowering::LowerJSLoadContext(Node* node) { |
- const ContextAccess& access = ContextAccessOf(node->op()); |
- for (size_t i = 0; i < access.depth(); ++i) { |
- node->ReplaceInput( |
- 0, graph()->NewNode(machine()->Load(MachineType::AnyTagged()), |
- NodeProperties::GetValueInput(node, 0), |
- jsgraph()->Int32Constant( |
- Context::SlotOffset(Context::PREVIOUS_INDEX)), |
- NodeProperties::GetEffectInput(node), |
- graph()->start())); |
- } |
- node->ReplaceInput(1, jsgraph()->Int32Constant(Context::SlotOffset( |
- static_cast<int>(access.index())))); |
- node->AppendInput(zone(), graph()->start()); |
- NodeProperties::ChangeOp(node, machine()->Load(MachineType::AnyTagged())); |
+ UNREACHABLE(); // Eliminated in typed lowering. |
} |
void JSGenericLowering::LowerJSStoreContext(Node* node) { |
- const ContextAccess& access = ContextAccessOf(node->op()); |
- for (size_t i = 0; i < access.depth(); ++i) { |
- node->ReplaceInput( |
- 0, graph()->NewNode(machine()->Load(MachineType::AnyTagged()), |
- NodeProperties::GetValueInput(node, 0), |
- jsgraph()->Int32Constant( |
- Context::SlotOffset(Context::PREVIOUS_INDEX)), |
- NodeProperties::GetEffectInput(node), |
- graph()->start())); |
- } |
- node->ReplaceInput(2, NodeProperties::GetValueInput(node, 1)); |
- node->ReplaceInput(1, jsgraph()->Int32Constant(Context::SlotOffset( |
- static_cast<int>(access.index())))); |
- NodeProperties::ChangeOp( |
- node, machine()->Store(StoreRepresentation(MachineRepresentation::kTagged, |
- kFullWriteBarrier))); |
+ UNREACHABLE(); // Eliminated in typed lowering. |
} |