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 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 << printable; | 1330 << printable; |
1331 } | 1331 } |
1332 if (verifier != nullptr) { | 1332 if (verifier != nullptr) { |
1333 CHECK(!data->register_allocation_data()->ExistsUseWithoutDefinition()); | 1333 CHECK(!data->register_allocation_data()->ExistsUseWithoutDefinition()); |
1334 } | 1334 } |
1335 | 1335 |
1336 if (FLAG_turbo_preprocess_ranges) { | 1336 if (FLAG_turbo_preprocess_ranges) { |
1337 Run<PreprocessLiveRangesPhase>(); | 1337 Run<PreprocessLiveRangesPhase>(); |
1338 } | 1338 } |
1339 | 1339 |
1340 if (FLAG_turbo_greedy_regalloc) { | 1340 // TODO(mtrofin): re-enable greedy once we have bots for range preprocessing. |
1341 Run<AllocateGeneralRegistersPhase<GreedyAllocator>>(); | 1341 Run<AllocateGeneralRegistersPhase<LinearScanAllocator>>(); |
1342 Run<AllocateDoubleRegistersPhase<GreedyAllocator>>(); | 1342 Run<AllocateDoubleRegistersPhase<LinearScanAllocator>>(); |
1343 } else { | |
1344 Run<AllocateGeneralRegistersPhase<LinearScanAllocator>>(); | |
1345 Run<AllocateDoubleRegistersPhase<LinearScanAllocator>>(); | |
1346 } | |
1347 | 1343 |
1348 if (FLAG_turbo_frame_elision) { | 1344 if (FLAG_turbo_frame_elision) { |
1349 Run<LocateSpillSlotsPhase>(); | 1345 Run<LocateSpillSlotsPhase>(); |
1350 Run<FrameElisionPhase>(); | 1346 Run<FrameElisionPhase>(); |
1351 } | 1347 } |
1352 | 1348 |
1353 Run<AssignSpillSlotsPhase>(); | 1349 Run<AssignSpillSlotsPhase>(); |
1354 | 1350 |
1355 Run<CommitAssignmentPhase>(); | 1351 Run<CommitAssignmentPhase>(); |
1356 Run<PopulateReferenceMapsPhase>(); | 1352 Run<PopulateReferenceMapsPhase>(); |
(...skipping 20 matching lines...) Expand all Loading... |
1377 tcf << AsC1VRegisterAllocationData("CodeGen", | 1373 tcf << AsC1VRegisterAllocationData("CodeGen", |
1378 data->register_allocation_data()); | 1374 data->register_allocation_data()); |
1379 } | 1375 } |
1380 | 1376 |
1381 data->DeleteRegisterAllocationZone(); | 1377 data->DeleteRegisterAllocationZone(); |
1382 } | 1378 } |
1383 | 1379 |
1384 } // namespace compiler | 1380 } // namespace compiler |
1385 } // namespace internal | 1381 } // namespace internal |
1386 } // namespace v8 | 1382 } // namespace v8 |
OLD | NEW |