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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 if (run_verifier) { | 1516 if (run_verifier) { |
1517 verifier_zone.Reset(new Zone(isolate()->allocator())); | 1517 verifier_zone.Reset(new Zone(isolate()->allocator())); |
1518 verifier = new (verifier_zone.get()) RegisterAllocatorVerifier( | 1518 verifier = new (verifier_zone.get()) RegisterAllocatorVerifier( |
1519 verifier_zone.get(), config, data->sequence()); | 1519 verifier_zone.get(), config, data->sequence()); |
1520 } | 1520 } |
1521 | 1521 |
1522 base::SmartArrayPointer<char> debug_name; | 1522 base::SmartArrayPointer<char> debug_name; |
1523 #ifdef DEBUG | 1523 #ifdef DEBUG |
1524 debug_name = info()->GetDebugName(); | 1524 debug_name = info()->GetDebugName(); |
1525 data_->sequence()->ValidateEdgeSplitForm(); | 1525 data_->sequence()->ValidateEdgeSplitForm(); |
| 1526 data_->sequence()->ValidateDeferredBlockEntryPaths(); |
1526 data_->sequence()->ValidateDeferredBlockExitPaths(); | 1527 data_->sequence()->ValidateDeferredBlockExitPaths(); |
1527 #endif | 1528 #endif |
1528 | 1529 |
1529 data->InitializeRegisterAllocationData(config, descriptor, debug_name.get()); | 1530 data->InitializeRegisterAllocationData(config, descriptor, debug_name.get()); |
1530 if (info()->is_osr()) { | 1531 if (info()->is_osr()) { |
1531 OsrHelper osr_helper(info()); | 1532 OsrHelper osr_helper(info()); |
1532 osr_helper.SetupFrame(data->frame()); | 1533 osr_helper.SetupFrame(data->frame()); |
1533 } | 1534 } |
1534 | 1535 |
1535 Run<MeetRegisterConstraintsPhase>(); | 1536 Run<MeetRegisterConstraintsPhase>(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1594 } | 1595 } |
1595 | 1596 |
1596 data->DeleteRegisterAllocationZone(); | 1597 data->DeleteRegisterAllocationZone(); |
1597 } | 1598 } |
1598 | 1599 |
1599 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1600 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
1600 | 1601 |
1601 } // namespace compiler | 1602 } // namespace compiler |
1602 } // namespace internal | 1603 } // namespace internal |
1603 } // namespace v8 | 1604 } // namespace v8 |
OLD | NEW |