Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 7cfac1d4c373b71053d521d4b78ea1a952489a6e..7af86889bf946a9a6e8c6a29f367d81b0cf63848 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -441,15 +441,14 @@ void JSGenericLowering::LowerJSStoreContext(Node* node) { |
} |
-void JSGenericLowering::LowerJSLoadDynamicGlobal(Node* node) { |
- const DynamicGlobalAccess& access = DynamicGlobalAccessOf(node->op()); |
+void JSGenericLowering::LowerJSLoadDynamic(Node* node) { |
+ const DynamicAccess& access = DynamicAccessOf(node->op()); |
Runtime::FunctionId function_id = |
(access.typeof_mode() == NOT_INSIDE_TYPEOF) |
? Runtime::kLoadLookupSlot |
: Runtime::kLoadLookupSlotNoReferenceError; |
Node* projection = graph()->NewNode(common()->Projection(0), node); |
NodeProperties::ReplaceUses(node, projection, node, node, node); |
- node->RemoveInput(NodeProperties::FirstFrameStateIndex(node) + 1); |
node->RemoveInput(NodeProperties::FirstValueIndex(node)); |
node->InsertInput(zone(), 1, jsgraph()->Constant(access.name())); |
ReplaceWithRuntimeCall(node, function_id); |
@@ -457,16 +456,6 @@ void JSGenericLowering::LowerJSLoadDynamicGlobal(Node* node) { |
} |
-void JSGenericLowering::LowerJSLoadDynamicContext(Node* node) { |
- const DynamicContextAccess& access = DynamicContextAccessOf(node->op()); |
- Node* projection = graph()->NewNode(common()->Projection(0), node); |
- NodeProperties::ReplaceUses(node, projection, node, node, node); |
- node->InsertInput(zone(), 1, jsgraph()->Constant(access.name())); |
- ReplaceWithRuntimeCall(node, Runtime::kLoadLookupSlot); |
- projection->ReplaceInput(0, node); |
-} |
- |
- |
void JSGenericLowering::LowerJSCreate(Node* node) { UNIMPLEMENTED(); } |