| OLD | NEW |
| 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 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 typer.Reset(nullptr); | 1205 typer.Reset(nullptr); |
| 1206 | 1206 |
| 1207 return ScheduleAndGenerateCode( | 1207 return ScheduleAndGenerateCode( |
| 1208 Linkage::ComputeIncoming(data.instruction_zone(), info())); | 1208 Linkage::ComputeIncoming(data.instruction_zone(), info())); |
| 1209 } | 1209 } |
| 1210 | 1210 |
| 1211 | 1211 |
| 1212 Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate, | 1212 Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate, |
| 1213 CallDescriptor* call_descriptor, | 1213 CallDescriptor* call_descriptor, |
| 1214 Graph* graph, Schedule* schedule, | 1214 Graph* graph, Schedule* schedule, |
| 1215 Code::Kind kind, | 1215 Code::Flags flags, |
| 1216 const char* debug_name) { | 1216 const char* debug_name) { |
| 1217 CompilationInfo info(debug_name, isolate, graph->zone()); | 1217 CompilationInfo info(debug_name, isolate, graph->zone(), flags); |
| 1218 info.set_output_code_kind(kind); | |
| 1219 | 1218 |
| 1220 // Construct a pipeline for scheduling and code generation. | 1219 // Construct a pipeline for scheduling and code generation. |
| 1221 ZonePool zone_pool; | 1220 ZonePool zone_pool; |
| 1222 PipelineData data(&zone_pool, &info, graph, schedule); | 1221 PipelineData data(&zone_pool, &info, graph, schedule); |
| 1223 base::SmartPointer<PipelineStatistics> pipeline_statistics; | 1222 base::SmartPointer<PipelineStatistics> pipeline_statistics; |
| 1224 if (FLAG_turbo_stats) { | 1223 if (FLAG_turbo_stats) { |
| 1225 pipeline_statistics.Reset(new PipelineStatistics(&info, &zone_pool)); | 1224 pipeline_statistics.Reset(new PipelineStatistics(&info, &zone_pool)); |
| 1226 pipeline_statistics->BeginPhaseKind("stub codegen"); | 1225 pipeline_statistics->BeginPhaseKind("stub codegen"); |
| 1227 } | 1226 } |
| 1228 | 1227 |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 tcf << AsC1VRegisterAllocationData("CodeGen", | 1477 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1479 data->register_allocation_data()); | 1478 data->register_allocation_data()); |
| 1480 } | 1479 } |
| 1481 | 1480 |
| 1482 data->DeleteRegisterAllocationZone(); | 1481 data->DeleteRegisterAllocationZone(); |
| 1483 } | 1482 } |
| 1484 | 1483 |
| 1485 } // namespace compiler | 1484 } // namespace compiler |
| 1486 } // namespace internal | 1485 } // namespace internal |
| 1487 } // namespace v8 | 1486 } // namespace v8 |
| OLD | NEW |