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

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

Issue 1317113004: Reduce the number of entrypoints to the compiler pipeline by one. Always require caller to provide … (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/pipeline.h ('k') | test/cctest/compiler/codegen-tester.h » ('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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 1169
1170 Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info, 1170 Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info,
1171 Graph* graph, 1171 Graph* graph,
1172 Schedule* schedule) { 1172 Schedule* schedule) {
1173 CallDescriptor* call_descriptor = 1173 CallDescriptor* call_descriptor =
1174 Linkage::ComputeIncoming(info->zone(), info); 1174 Linkage::ComputeIncoming(info->zone(), info);
1175 return GenerateCodeForTesting(info, call_descriptor, graph, schedule); 1175 return GenerateCodeForTesting(info, call_descriptor, graph, schedule);
1176 } 1176 }
1177 1177
1178 1178
1179 Handle<Code> Pipeline::GenerateCodeForTesting(Isolate* isolate,
1180 CallDescriptor* call_descriptor,
1181 Graph* graph,
1182 Schedule* schedule) {
1183 CompilationInfo info("testing", isolate, graph->zone());
1184 return GenerateCodeForTesting(&info, call_descriptor, graph, schedule);
1185 }
1186
1187
1188 Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info, 1179 Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info,
1189 CallDescriptor* call_descriptor, 1180 CallDescriptor* call_descriptor,
1190 Graph* graph, 1181 Graph* graph,
1191 Schedule* schedule) { 1182 Schedule* schedule) {
1192 // Construct a pipeline for scheduling and code generation. 1183 // Construct a pipeline for scheduling and code generation.
1193 ZonePool zone_pool; 1184 ZonePool zone_pool;
1194 PipelineData data(&zone_pool, info, graph, schedule); 1185 PipelineData data(&zone_pool, info, graph, schedule);
1195 base::SmartPointer<PipelineStatistics> pipeline_statistics; 1186 base::SmartPointer<PipelineStatistics> pipeline_statistics;
1196 if (FLAG_turbo_stats) { 1187 if (FLAG_turbo_stats) {
1197 pipeline_statistics.Reset(new PipelineStatistics(info, &zone_pool)); 1188 pipeline_statistics.Reset(new PipelineStatistics(info, &zone_pool));
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 tcf << AsC1VRegisterAllocationData("CodeGen", 1393 tcf << AsC1VRegisterAllocationData("CodeGen",
1403 data->register_allocation_data()); 1394 data->register_allocation_data());
1404 } 1395 }
1405 1396
1406 data->DeleteRegisterAllocationZone(); 1397 data->DeleteRegisterAllocationZone();
1407 } 1398 }
1408 1399
1409 } // namespace compiler 1400 } // namespace compiler
1410 } // namespace internal 1401 } // namespace internal
1411 } // namespace v8 1402 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/pipeline.h ('k') | test/cctest/compiler/codegen-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698