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

Unified Diff: src/compiler/pipeline.cc

Issue 1110503002: [turbofan] Reland: Optimize loads from the global object in JSTypeFeedbackSpecializer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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-type-feedback.cc ('k') | test/cctest/compiler/test-run-jsexceptions.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 022b6b5d1b2fb4eb24519d825f8548a2dde44d9c..2698c689c45a7e6e645f7a95a1b0fdd2c36830fa 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -542,8 +542,16 @@ struct JSTypeFeedbackPhase {
data->info()->unoptimized_code(),
data->info()->feedback_vector(), native_context);
GraphReducer graph_reducer(data->graph(), temp_zone);
- JSTypeFeedbackSpecializer specializer(data->jsgraph(),
- data->js_type_feedback(), &oracle);
+ Handle<GlobalObject> global_object = Handle<GlobalObject>::null();
+ if (data->info()->has_global_object()) {
+ global_object =
+ Handle<GlobalObject>(data->info()->global_object(), data->isolate());
+ }
+ // TODO(titzer): introduce a specialization mode/flags enum to control
+ // specializing to the global object here.
+ JSTypeFeedbackSpecializer specializer(
+ data->jsgraph(), data->js_type_feedback(), &oracle, global_object,
+ data->info()->dependencies());
AddReducer(data, &graph_reducer, &specializer);
graph_reducer.ReduceGraph();
}
« no previous file with comments | « src/compiler/js-type-feedback.cc ('k') | test/cctest/compiler/test-run-jsexceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698