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

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

Issue 1403223003: [turbofan] Make native context specialization dependent on the typed pipeline. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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-global-specialization.cc ('k') | src/compiler/pipeline.cc » ('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 291f4874a02241f014622180fd03aa9b01fac3aa..bee92803f80580e7d776356c92669d0d30997f8d 100644
--- a/src/compiler/js-inlining.cc
+++ b/src/compiler/js-inlining.cc
@@ -319,9 +319,6 @@ Reduction JSInliner::ReduceJSCallFunction(Node* node,
if (info_->is_native_context_specializing()) {
info.MarkAsNativeContextSpecializing();
}
- if (info_->is_typing_enabled()) {
- info.MarkAsTypingEnabled();
- }
if (!Compiler::ParseAndAnalyze(info.parse_info())) {
TRACE("Not inlining %s into %s because parsing failed\n",
@@ -358,15 +355,11 @@ Reduction JSInliner::ReduceJSCallFunction(Node* node,
jsgraph.common());
CommonOperatorReducer common_reducer(&graph_reducer, &graph,
jsgraph.common(), jsgraph.machine());
- JSGlobalSpecialization::Flags flags = JSGlobalSpecialization::kNoFlags;
- if (info.is_deoptimization_enabled()) {
- flags |= JSGlobalSpecialization::kDeoptimizationEnabled;
- }
- if (info.is_typing_enabled()) {
- flags |= JSGlobalSpecialization::kTypingEnabled;
- }
JSGlobalSpecialization global_specialization(
- &graph_reducer, &jsgraph, flags,
+ &graph_reducer, &jsgraph,
+ info.is_deoptimization_enabled()
+ ? JSGlobalSpecialization::kDeoptimizationEnabled
+ : JSGlobalSpecialization::kNoFlags,
handle(info.global_object(), info.isolate()), info_->dependencies());
graph_reducer.AddReducer(&dead_code_elimination);
graph_reducer.AddReducer(&common_reducer);
« no previous file with comments | « src/compiler/js-global-specialization.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698