| 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 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 Run<ResolvePhisPhase>(); | 1369 Run<ResolvePhisPhase>(); |
| 1370 Run<BuildLiveRangesPhase>(); | 1370 Run<BuildLiveRangesPhase>(); |
| 1371 if (FLAG_trace_turbo_graph) { | 1371 if (FLAG_trace_turbo_graph) { |
| 1372 OFStream os(stdout); | 1372 OFStream os(stdout); |
| 1373 PrintableInstructionSequence printable = {config, data->sequence()}; | 1373 PrintableInstructionSequence printable = {config, data->sequence()}; |
| 1374 os << "----- Instruction sequence before register allocation -----\n" | 1374 os << "----- Instruction sequence before register allocation -----\n" |
| 1375 << printable; | 1375 << printable; |
| 1376 } | 1376 } |
| 1377 if (verifier != nullptr) { | 1377 if (verifier != nullptr) { |
| 1378 CHECK(!data->register_allocation_data()->ExistsUseWithoutDefinition()); | 1378 CHECK(!data->register_allocation_data()->ExistsUseWithoutDefinition()); |
| 1379 CHECK(data->register_allocation_data() |
| 1380 ->RangesDefinedInDeferredStayInDeferred()); |
| 1379 } | 1381 } |
| 1380 | 1382 |
| 1381 if (FLAG_turbo_preprocess_ranges) { | 1383 if (FLAG_turbo_preprocess_ranges) { |
| 1382 Run<SplinterLiveRangesPhase>(); | 1384 Run<SplinterLiveRangesPhase>(); |
| 1383 } | 1385 } |
| 1384 | 1386 |
| 1385 if (FLAG_turbo_greedy_regalloc) { | 1387 if (FLAG_turbo_greedy_regalloc) { |
| 1386 Run<AllocateGeneralRegistersPhase<GreedyAllocator>>(); | 1388 Run<AllocateGeneralRegistersPhase<GreedyAllocator>>(); |
| 1387 Run<AllocateDoubleRegistersPhase<GreedyAllocator>>(); | 1389 Run<AllocateDoubleRegistersPhase<GreedyAllocator>>(); |
| 1388 } else { | 1390 } else { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 tcf << AsC1VRegisterAllocationData("CodeGen", | 1428 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1427 data->register_allocation_data()); | 1429 data->register_allocation_data()); |
| 1428 } | 1430 } |
| 1429 | 1431 |
| 1430 data->DeleteRegisterAllocationZone(); | 1432 data->DeleteRegisterAllocationZone(); |
| 1431 } | 1433 } |
| 1432 | 1434 |
| 1433 } // namespace compiler | 1435 } // namespace compiler |
| 1434 } // namespace internal | 1436 } // namespace internal |
| 1435 } // namespace v8 | 1437 } // namespace v8 |
| OLD | NEW |