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

Unified Diff: src/compiler/pipeline.cc

Issue 2361773002: [turbofan] Bailout for call sites w/o feedback. (Closed)
Patch Set: Created 4 years, 3 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-call-reducer.cc ('k') | src/deoptimize-reason.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index a9a095f70bf141174f5db43106f49f54b877cea1..43c15ee8d4a61075d14954fa87ddb6da60ee0e82 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -793,11 +793,15 @@ struct InliningPhase {
data->common());
CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
data->common(), data->machine());
- JSCallReducer call_reducer(data->jsgraph(),
- data->info()->is_deoptimization_enabled()
- ? JSCallReducer::kDeoptimizationEnabled
- : JSCallReducer::kNoFlags,
- data->native_context());
+ JSCallReducer::Flags call_reducer_flags = JSCallReducer::kNoFlags;
+ if (data->info()->is_bailout_on_uninitialized()) {
+ call_reducer_flags |= JSCallReducer::kBailoutOnUninitialized;
+ }
+ if (data->info()->is_deoptimization_enabled()) {
+ call_reducer_flags |= JSCallReducer::kDeoptimizationEnabled;
+ }
+ JSCallReducer call_reducer(&graph_reducer, data->jsgraph(),
+ call_reducer_flags, data->native_context());
JSContextSpecialization context_specialization(
&graph_reducer, data->jsgraph(),
data->info()->is_function_context_specializing()
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/deoptimize-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698