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

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

Issue 1606613002: [turbofan] Memory improvements for escape analysis (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@stage-fix
Patch Set: Unstage for landing Created 4 years, 11 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/escape-analysis-reducer.cc ('k') | no next file » | 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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 EscapeAnalysis escape_analysis(data->graph(), data->jsgraph()->common(), 661 EscapeAnalysis escape_analysis(data->graph(), data->jsgraph()->common(),
662 temp_zone); 662 temp_zone);
663 escape_analysis.Run(); 663 escape_analysis.Run();
664 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 664 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
665 EscapeAnalysisReducer escape_reducer(&graph_reducer, data->jsgraph(), 665 EscapeAnalysisReducer escape_reducer(&graph_reducer, data->jsgraph(),
666 &escape_analysis, temp_zone); 666 &escape_analysis, temp_zone);
667 escape_reducer.SetExistsVirtualAllocate( 667 escape_reducer.SetExistsVirtualAllocate(
668 escape_analysis.ExistsVirtualAllocate()); 668 escape_analysis.ExistsVirtualAllocate());
669 AddReducer(data, &graph_reducer, &escape_reducer); 669 AddReducer(data, &graph_reducer, &escape_reducer);
670 graph_reducer.ReduceGraph(); 670 graph_reducer.ReduceGraph();
671 escape_reducer.VerifyReplacement();
671 } 672 }
672 }; 673 };
673 674
674 675
675 struct SimplifiedLoweringPhase { 676 struct SimplifiedLoweringPhase {
676 static const char* phase_name() { return "simplified lowering"; } 677 static const char* phase_name() { return "simplified lowering"; }
677 678
678 void Run(PipelineData* data, Zone* temp_zone) { 679 void Run(PipelineData* data, Zone* temp_zone) {
679 SimplifiedLowering lowering(data->jsgraph(), temp_zone, 680 SimplifiedLowering lowering(data->jsgraph(), temp_zone,
680 data->source_positions()); 681 data->source_positions());
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 tcf << AsC1VRegisterAllocationData("CodeGen", 1473 tcf << AsC1VRegisterAllocationData("CodeGen",
1473 data->register_allocation_data()); 1474 data->register_allocation_data());
1474 } 1475 }
1475 1476
1476 data->DeleteRegisterAllocationZone(); 1477 data->DeleteRegisterAllocationZone();
1477 } 1478 }
1478 1479
1479 } // namespace compiler 1480 } // namespace compiler
1480 } // namespace internal 1481 } // namespace internal
1481 } // namespace v8 1482 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/escape-analysis-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698