| 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 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 // Output source position information before the graph is deleted. | 1292 // Output source position information before the graph is deleted. |
| 1293 data_->source_positions()->Print(source_position_output); | 1293 data_->source_positions()->Print(source_position_output); |
| 1294 } | 1294 } |
| 1295 | 1295 |
| 1296 data->DeleteGraphZone(); | 1296 data->DeleteGraphZone(); |
| 1297 | 1297 |
| 1298 BeginPhaseKind("register allocation"); | 1298 BeginPhaseKind("register allocation"); |
| 1299 | 1299 |
| 1300 bool run_verifier = FLAG_turbo_verify_allocation; | 1300 bool run_verifier = FLAG_turbo_verify_allocation; |
| 1301 // Allocate registers. | 1301 // Allocate registers. |
| 1302 AllocateRegisters(RegisterConfiguration::ArchDefault(), call_descriptor, | 1302 AllocateRegisters(RegisterConfiguration::ArchDefaultForTurbo(), |
| 1303 run_verifier); | 1303 call_descriptor, run_verifier); |
| 1304 if (data->compilation_failed()) { | 1304 if (data->compilation_failed()) { |
| 1305 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); | 1305 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); |
| 1306 return Handle<Code>(); | 1306 return Handle<Code>(); |
| 1307 } | 1307 } |
| 1308 | 1308 |
| 1309 BeginPhaseKind("code generation"); | 1309 BeginPhaseKind("code generation"); |
| 1310 | 1310 |
| 1311 // Optimimize jumps. | 1311 // Optimimize jumps. |
| 1312 if (FLAG_turbo_jt) { | 1312 if (FLAG_turbo_jt) { |
| 1313 Run<JumpThreadingPhase>(); | 1313 Run<JumpThreadingPhase>(); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1444 tcf << AsC1VRegisterAllocationData("CodeGen", | 1444 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1445 data->register_allocation_data()); | 1445 data->register_allocation_data()); |
| 1446 } | 1446 } |
| 1447 | 1447 |
| 1448 data->DeleteRegisterAllocationZone(); | 1448 data->DeleteRegisterAllocationZone(); |
| 1449 } | 1449 } |
| 1450 | 1450 |
| 1451 } // namespace compiler | 1451 } // namespace compiler |
| 1452 } // namespace internal | 1452 } // namespace internal |
| 1453 } // namespace v8 | 1453 } // namespace v8 |
| OLD | NEW |