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

Side by Side Diff: src/compiler/pipeline.cc

Issue 1136413002: [turbofan] JSTypeFeedbackSpecializer is now an AdvancedReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
« no previous file with comments | « src/compiler/js-type-feedback.cc ('k') | test/unittests/compiler/js-type-feedback-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 data->info()->feedback_vector(), native_context); 538 data->info()->feedback_vector(), native_context);
539 GraphReducer graph_reducer(data->graph(), temp_zone); 539 GraphReducer graph_reducer(data->graph(), temp_zone);
540 Handle<GlobalObject> global_object = Handle<GlobalObject>::null(); 540 Handle<GlobalObject> global_object = Handle<GlobalObject>::null();
541 if (data->info()->has_global_object()) { 541 if (data->info()->has_global_object()) {
542 global_object = 542 global_object =
543 Handle<GlobalObject>(data->info()->global_object(), data->isolate()); 543 Handle<GlobalObject>(data->info()->global_object(), data->isolate());
544 } 544 }
545 // TODO(titzer): introduce a specialization mode/flags enum to control 545 // TODO(titzer): introduce a specialization mode/flags enum to control
546 // specializing to the global object here. 546 // specializing to the global object here.
547 JSTypeFeedbackSpecializer specializer( 547 JSTypeFeedbackSpecializer specializer(
548 data->jsgraph(), data->js_type_feedback(), &oracle, global_object, 548 &graph_reducer, data->jsgraph(), data->js_type_feedback(), &oracle,
549 data->info()->dependencies()); 549 global_object, data->info()->dependencies());
550 AddReducer(data, &graph_reducer, &specializer); 550 AddReducer(data, &graph_reducer, &specializer);
551 graph_reducer.ReduceGraph(); 551 graph_reducer.ReduceGraph();
552 } 552 }
553 }; 553 };
554 554
555 555
556 struct TypedLoweringPhase { 556 struct TypedLoweringPhase {
557 static const char* phase_name() { return "typed lowering"; } 557 static const char* phase_name() { return "typed lowering"; }
558 558
559 void Run(PipelineData* data, Zone* temp_zone) { 559 void Run(PipelineData* data, Zone* temp_zone) {
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 tcf << AsC1VRegisterAllocationData("CodeGen", 1323 tcf << AsC1VRegisterAllocationData("CodeGen",
1324 data->register_allocation_data()); 1324 data->register_allocation_data());
1325 } 1325 }
1326 1326
1327 data->DeleteRegisterAllocationZone(); 1327 data->DeleteRegisterAllocationZone();
1328 } 1328 }
1329 1329
1330 } // namespace compiler 1330 } // namespace compiler
1331 } // namespace internal 1331 } // namespace internal
1332 } // namespace v8 1332 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-type-feedback.cc ('k') | test/unittests/compiler/js-type-feedback-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698