Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: src/compiler/js-inlining.cc

Issue 2858933004: [turbofan] Lower monomorphic loads during graph building.
Patch Set: Prune headers Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-inlining.h ('k') | src/compiler/js-type-hint-lowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « src/compiler/js-inlining.h ('k') | src/compiler/js-type-hint-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698