| Index: src/compiler/js-generic-lowering.cc
|
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
|
| index 8b230c928f498ac851327dce4bfe9e962204448d..043722f9cc01cd61893b2ea087fcbd9432d2a2dd 100644
|
| --- a/src/compiler/js-generic-lowering.cc
|
| +++ b/src/compiler/js-generic-lowering.cc
|
| @@ -429,11 +429,9 @@ Node* JSGenericLowering::LowerJSLoadProperty(Node* node) {
|
|
|
|
|
| Node* JSGenericLowering::LowerJSLoadNamed(Node* node) {
|
| - PrintableUnique<Name> key = OpParameter<PrintableUnique<Name> >(node);
|
| - // TODO(mstarzinger): The ContextualMode needs to be carried along in the
|
| - // operator to use JSLoadNamed for global variable loads.
|
| - LoadICStubShim stub(isolate(), NOT_CONTEXTUAL);
|
| - PatchInsertInput(node, 1, jsgraph()->HeapConstant(key));
|
| + LoadNamedParameters p = OpParameter<LoadNamedParameters>(node);
|
| + LoadICStubShim stub(isolate(), p.contextual_mode);
|
| + PatchInsertInput(node, 1, jsgraph()->HeapConstant(p.name));
|
| ReplaceWithICStubCall(node, &stub);
|
| return node;
|
| }
|
|
|