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

Unified Diff: src/compiler/pipeline.cc

Issue 2792553002: [turbofan] Specialize to closure with function context specialization. (Closed)
Patch Set: Created 3 years, 9 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-context-specialization.cc ('k') | test/cctest/compiler/test-js-context-specialization.cc » ('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 a8f0c8905ffe5b307774395c8a9a14243575158e..b410c3a47a49a8e023f531ccfe7bb79903c580a9 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -799,7 +799,10 @@ struct InliningPhase {
&graph_reducer, data->jsgraph(),
data->info()->is_function_context_specializing()
? handle(data->info()->context())
- : MaybeHandle<Context>());
+ : MaybeHandle<Context>(),
+ data->info()->is_function_context_specializing()
+ ? data->info()->closure()
+ : MaybeHandle<JSFunction>());
JSFrameSpecialization frame_specialization(
&graph_reducer, data->info()->osr_frame(), data->jsgraph());
JSNativeContextSpecialization::Flags flags =
« no previous file with comments | « src/compiler/js-context-specialization.cc ('k') | test/cctest/compiler/test-js-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698