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

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

Issue 1158723005: [turbofan] Turn LoadElimination into an AdvancedReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/load-elimination.cc ('k') | test/unittests/compiler/load-elimination-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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 graph_reducer.ReduceGraph(); 562 graph_reducer.ReduceGraph();
563 } 563 }
564 }; 564 };
565 565
566 566
567 struct TypedLoweringPhase { 567 struct TypedLoweringPhase {
568 static const char* phase_name() { return "typed lowering"; } 568 static const char* phase_name() { return "typed lowering"; }
569 569
570 void Run(PipelineData* data, Zone* temp_zone) { 570 void Run(PipelineData* data, Zone* temp_zone) {
571 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 571 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
572 LoadElimination load_elimination; 572 LoadElimination load_elimination(&graph_reducer);
573 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph()); 573 JSBuiltinReducer builtin_reducer(&graph_reducer, data->jsgraph());
574 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); 574 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone);
575 JSIntrinsicLowering intrinsic_lowering( 575 JSIntrinsicLowering intrinsic_lowering(
576 &graph_reducer, data->jsgraph(), 576 &graph_reducer, data->jsgraph(),
577 data->info()->is_deoptimization_enabled() 577 data->info()->is_deoptimization_enabled()
578 ? JSIntrinsicLowering::kDeoptimizationEnabled 578 ? JSIntrinsicLowering::kDeoptimizationEnabled
579 : JSIntrinsicLowering::kDeoptimizationDisabled); 579 : JSIntrinsicLowering::kDeoptimizationDisabled);
580 CommonOperatorReducer common_reducer(data->jsgraph()); 580 CommonOperatorReducer common_reducer(data->jsgraph());
581 AddReducer(data, &graph_reducer, &builtin_reducer); 581 AddReducer(data, &graph_reducer, &builtin_reducer);
582 AddReducer(data, &graph_reducer, &typed_lowering); 582 AddReducer(data, &graph_reducer, &typed_lowering);
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 tcf << AsC1VRegisterAllocationData("CodeGen", 1329 tcf << AsC1VRegisterAllocationData("CodeGen",
1330 data->register_allocation_data()); 1330 data->register_allocation_data());
1331 } 1331 }
1332 1332
1333 data->DeleteRegisterAllocationZone(); 1333 data->DeleteRegisterAllocationZone();
1334 } 1334 }
1335 1335
1336 } // namespace compiler 1336 } // namespace compiler
1337 } // namespace internal 1337 } // namespace internal
1338 } // namespace v8 1338 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/load-elimination.cc ('k') | test/unittests/compiler/load-elimination-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698