| Index: src/compiler/js-inlining.cc
|
| diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc
|
| index 4efcf4e042f81804177e5084ee6bd8befd56eef0..c3e9b90851a874c6dc8add48b940fa6834e98e71 100644
|
| --- a/src/compiler/js-inlining.cc
|
| +++ b/src/compiler/js-inlining.cc
|
| @@ -374,8 +374,7 @@ bool JSInliner::DetermineCallTarget(
|
| // TODO(turbofan): We might want to revisit this restriction later when we
|
| // have a need for this, and we know how to model different native contexts
|
| // in the same graph in a compositional way.
|
| - if (function->context()->native_context() !=
|
| - info_->context()->native_context()) {
|
| + if (function->context()->native_context() != *native_context()) {
|
| return false;
|
| }
|
|
|
| @@ -454,6 +453,10 @@ Reduction JSInliner::Reduce(Node* node) {
|
| return ReduceJSCall(node);
|
| }
|
|
|
| +Handle<Context> JSInliner::native_context() const {
|
| + return handle(info_->context()->native_context());
|
| +}
|
| +
|
| Reduction JSInliner::ReduceJSCall(Node* node) {
|
| DCHECK(IrOpcode::IsInlineeOpcode(node->opcode()));
|
| Handle<SharedFunctionInfo> shared_info;
|
| @@ -581,7 +584,8 @@ Reduction JSInliner::ReduceJSCall(Node* node) {
|
| }
|
| BytecodeGraphBuilder graph_builder(
|
| parse_info.zone(), shared_info, feedback_vector, BailoutId::None(),
|
| - jsgraph(), call.frequency(), source_positions_, inlining_id, flags);
|
| + jsgraph(), call.frequency(), source_positions_, native_context(),
|
| + info_->dependencies(), inlining_id, flags);
|
| graph_builder.CreateGraph(false);
|
|
|
| // Extract the inlinee start/end nodes.
|
|
|