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

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

Issue 1126603002: Revert of Revert of [turbofan] Small fixes to PipelineStatistics. Collect statistics in tests. (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 | « no previous file | src/compiler/pipeline-statistics.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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 } 1132 }
1133 1133
1134 1134
1135 Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info, 1135 Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info,
1136 CallDescriptor* call_descriptor, 1136 CallDescriptor* call_descriptor,
1137 Graph* graph, 1137 Graph* graph,
1138 Schedule* schedule) { 1138 Schedule* schedule) {
1139 // Construct a pipeline for scheduling and code generation. 1139 // Construct a pipeline for scheduling and code generation.
1140 ZonePool zone_pool; 1140 ZonePool zone_pool;
1141 PipelineData data(&zone_pool, info, graph, schedule); 1141 PipelineData data(&zone_pool, info, graph, schedule);
1142 SmartPointer<PipelineStatistics> pipeline_statistics;
1143 if (FLAG_turbo_stats) {
1144 pipeline_statistics.Reset(new PipelineStatistics(info, &zone_pool));
1145 pipeline_statistics->BeginPhaseKind("test codegen");
1146 }
1147
1142 Pipeline pipeline(info); 1148 Pipeline pipeline(info);
1143 pipeline.data_ = &data; 1149 pipeline.data_ = &data;
1144 if (data.schedule() == nullptr) { 1150 if (data.schedule() == nullptr) {
1145 // TODO(rossberg): Should this really be untyped? 1151 // TODO(rossberg): Should this really be untyped?
1146 pipeline.RunPrintAndVerify("Machine", true); 1152 pipeline.RunPrintAndVerify("Machine", true);
1147 } 1153 }
1148 1154
1149 return pipeline.ScheduleAndGenerateCode(call_descriptor); 1155 return pipeline.ScheduleAndGenerateCode(call_descriptor);
1150 } 1156 }
1151 1157
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 tcf << AsC1VRegisterAllocationData("CodeGen", 1344 tcf << AsC1VRegisterAllocationData("CodeGen",
1339 data->register_allocation_data()); 1345 data->register_allocation_data());
1340 } 1346 }
1341 1347
1342 data->DeleteRegisterAllocationZone(); 1348 data->DeleteRegisterAllocationZone();
1343 } 1349 }
1344 1350
1345 } // namespace compiler 1351 } // namespace compiler
1346 } // namespace internal 1352 } // namespace internal
1347 } // namespace v8 1353 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/pipeline-statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698