| Index: src/compiler/js-context-specialization.cc
|
| diff --git a/src/compiler/js-context-specialization.cc b/src/compiler/js-context-specialization.cc
|
| index cd8932b29895b308df24a9349f669595c20340d8..196a750acf598aaa520ad980b63688811671b47d 100644
|
| --- a/src/compiler/js-context-specialization.cc
|
| +++ b/src/compiler/js-context-specialization.cc
|
| @@ -67,7 +67,7 @@ Reduction JSContextSpecializer::ReduceJSLoadContext(Node* node) {
|
| return Reducer::NoChange();
|
| }
|
|
|
| - ContextAccess access = OpParameter<ContextAccess>(node);
|
| + const ContextAccess& access = ContextAccessOf(node->op());
|
|
|
| // Find the right parent context.
|
| Context* context = *m.Value().handle();
|
| @@ -82,7 +82,7 @@ Reduction JSContextSpecializer::ReduceJSLoadContext(Node* node) {
|
| return Reducer::NoChange();
|
| }
|
| const Operator* op = jsgraph_->javascript()->LoadContext(
|
| - 0, access.index(), access.immutable());
|
| + ContextAccess(0, access.index(), access.immutable()));
|
| node->set_op(op);
|
| Handle<Object> context_handle = Handle<Object>(context, info_->isolate());
|
| node->ReplaceInput(0, jsgraph_->Constant(context_handle));
|
| @@ -115,7 +115,7 @@ Reduction JSContextSpecializer::ReduceJSStoreContext(Node* node) {
|
| return Reducer::NoChange();
|
| }
|
|
|
| - ContextAccess access = OpParameter<ContextAccess>(node);
|
| + const ContextAccess& access = ContextAccessOf(node->op());
|
|
|
| // The access does not have to look up a parent, nothing to fold.
|
| if (access.depth() == 0) {
|
| @@ -128,7 +128,8 @@ Reduction JSContextSpecializer::ReduceJSStoreContext(Node* node) {
|
| context = context->previous();
|
| }
|
|
|
| - const Operator* op = jsgraph_->javascript()->StoreContext(0, access.index());
|
| + const Operator* op =
|
| + jsgraph_->javascript()->StoreContext(ContextAccess(0, access.index()));
|
| node->set_op(op);
|
| Handle<Object> new_context_handle = Handle<Object>(context, info_->isolate());
|
| node->ReplaceInput(0, jsgraph_->Constant(new_context_handle));
|
|
|