| Index: src/compiler/js-inlining.cc
|
| diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc
|
| index daee92b87a0931e84fb97494614c393d75f527c7..147cfc9134a896d7b34b9e7e5f00c1c5707cc0f3 100644
|
| --- a/src/compiler/js-inlining.cc
|
| +++ b/src/compiler/js-inlining.cc
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "src/compiler/access-builder.h"
|
| #include "src/compiler/ast-graph-builder.h"
|
| #include "src/compiler/common-operator.h"
|
| #include "src/compiler/generic-node-inl.h"
|
| @@ -227,11 +228,10 @@ void Inlinee::InlineAtCall(JSGraph* jsgraph, Node* call) {
|
|
|
| // The inlinee uses the context from the JSFunction object. This will
|
| // also be the effect dependency for the inlinee as it produces an effect.
|
| - // TODO(sigurds) Use simplified load once it is ready.
|
| + SimplifiedOperatorBuilder simplified(jsgraph->zone());
|
| Node* context = jsgraph->graph()->NewNode(
|
| - jsgraph->machine()->Load(kMachAnyTagged),
|
| + simplified.LoadField(AccessBuilder::ForJSFunctionContext()),
|
| NodeProperties::GetValueInput(call, 0),
|
| - jsgraph->Int32Constant(JSFunction::kContextOffset - kHeapObjectTag),
|
| NodeProperties::GetEffectInput(call));
|
|
|
| // {inlinee_inputs} counts JSFunction, Receiver, arguments, context,
|
|
|