| 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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1319 // Output source position information before the graph is deleted. | 1319 // Output source position information before the graph is deleted. |
| 1320 data_->source_positions()->Print(source_position_output); | 1320 data_->source_positions()->Print(source_position_output); |
| 1321 } | 1321 } |
| 1322 | 1322 |
| 1323 data->DeleteGraphZone(); | 1323 data->DeleteGraphZone(); |
| 1324 | 1324 |
| 1325 BeginPhaseKind("register allocation"); | 1325 BeginPhaseKind("register allocation"); |
| 1326 | 1326 |
| 1327 bool run_verifier = FLAG_turbo_verify_allocation; | 1327 bool run_verifier = FLAG_turbo_verify_allocation; |
| 1328 // Allocate registers. | 1328 // Allocate registers. |
| 1329 AllocateRegisters(RegisterConfiguration::ArchDefault(), call_descriptor, | 1329 AllocateRegisters( |
| 1330 run_verifier); | 1330 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN), |
| 1331 call_descriptor, run_verifier); |
| 1331 if (data->compilation_failed()) { | 1332 if (data->compilation_failed()) { |
| 1332 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); | 1333 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); |
| 1333 return Handle<Code>(); | 1334 return Handle<Code>(); |
| 1334 } | 1335 } |
| 1335 | 1336 |
| 1336 BeginPhaseKind("code generation"); | 1337 BeginPhaseKind("code generation"); |
| 1337 | 1338 |
| 1338 // Optimimize jumps. | 1339 // Optimimize jumps. |
| 1339 if (FLAG_turbo_jt) { | 1340 if (FLAG_turbo_jt) { |
| 1340 Run<JumpThreadingPhase>(); | 1341 Run<JumpThreadingPhase>(); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 tcf << AsC1VRegisterAllocationData("CodeGen", | 1472 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1472 data->register_allocation_data()); | 1473 data->register_allocation_data()); |
| 1473 } | 1474 } |
| 1474 | 1475 |
| 1475 data->DeleteRegisterAllocationZone(); | 1476 data->DeleteRegisterAllocationZone(); |
| 1476 } | 1477 } |
| 1477 | 1478 |
| 1478 } // namespace compiler | 1479 } // namespace compiler |
| 1479 } // namespace internal | 1480 } // namespace internal |
| 1480 } // namespace v8 | 1481 } // namespace v8 |
| OLD | NEW |