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 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1438 RegisterAllocatorVerifier* verifier = nullptr; | 1438 RegisterAllocatorVerifier* verifier = nullptr; |
1439 if (run_verifier) { | 1439 if (run_verifier) { |
1440 verifier_zone.Reset(new Zone()); | 1440 verifier_zone.Reset(new Zone()); |
1441 verifier = new (verifier_zone.get()) RegisterAllocatorVerifier( | 1441 verifier = new (verifier_zone.get()) RegisterAllocatorVerifier( |
1442 verifier_zone.get(), config, data->sequence()); | 1442 verifier_zone.get(), config, data->sequence()); |
1443 } | 1443 } |
1444 | 1444 |
1445 base::SmartArrayPointer<char> debug_name; | 1445 base::SmartArrayPointer<char> debug_name; |
1446 #ifdef DEBUG | 1446 #ifdef DEBUG |
1447 debug_name = info()->GetDebugName(); | 1447 debug_name = info()->GetDebugName(); |
| 1448 data_->sequence()->ValidateEdgeSplitForm(); |
1448 #endif | 1449 #endif |
1449 | 1450 |
1450 data->InitializeRegisterAllocationData(config, descriptor, debug_name.get()); | 1451 data->InitializeRegisterAllocationData(config, descriptor, debug_name.get()); |
1451 if (info()->is_osr()) { | 1452 if (info()->is_osr()) { |
1452 OsrHelper osr_helper(info()); | 1453 OsrHelper osr_helper(info()); |
1453 osr_helper.SetupFrame(data->frame()); | 1454 osr_helper.SetupFrame(data->frame()); |
1454 } | 1455 } |
1455 | 1456 |
1456 Run<MeetRegisterConstraintsPhase>(); | 1457 Run<MeetRegisterConstraintsPhase>(); |
1457 Run<ResolvePhisPhase>(); | 1458 Run<ResolvePhisPhase>(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 } | 1520 } |
1520 | 1521 |
1521 data->DeleteRegisterAllocationZone(); | 1522 data->DeleteRegisterAllocationZone(); |
1522 } | 1523 } |
1523 | 1524 |
1524 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1525 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
1525 | 1526 |
1526 } // namespace compiler | 1527 } // namespace compiler |
1527 } // namespace internal | 1528 } // namespace internal |
1528 } // namespace v8 | 1529 } // namespace v8 |
OLD | NEW |