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 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 } | 1515 } |
1516 | 1516 |
1517 return code; | 1517 return code; |
1518 } | 1518 } |
1519 | 1519 |
1520 | 1520 |
1521 void Pipeline::AllocateRegisters(const RegisterConfiguration* config, | 1521 void Pipeline::AllocateRegisters(const RegisterConfiguration* config, |
1522 CallDescriptor* descriptor, | 1522 CallDescriptor* descriptor, |
1523 bool run_verifier) { | 1523 bool run_verifier) { |
1524 PipelineData* data = this->data_; | 1524 PipelineData* data = this->data_; |
1525 | |
1526 // Don't track usage for this zone in compiler stats. | 1525 // Don't track usage for this zone in compiler stats. |
1527 base::SmartPointer<Zone> verifier_zone; | 1526 base::SmartPointer<Zone> verifier_zone; |
1528 RegisterAllocatorVerifier* verifier = nullptr; | 1527 RegisterAllocatorVerifier* verifier = nullptr; |
1529 if (run_verifier) { | 1528 if (run_verifier) { |
1530 verifier_zone.Reset(new Zone(isolate()->allocator())); | 1529 verifier_zone.Reset(new Zone(isolate()->allocator())); |
1531 verifier = new (verifier_zone.get()) RegisterAllocatorVerifier( | 1530 verifier = new (verifier_zone.get()) RegisterAllocatorVerifier( |
1532 verifier_zone.get(), config, data->sequence()); | 1531 verifier_zone.get(), config, data->sequence()); |
1533 } | 1532 } |
1534 | 1533 |
1535 base::SmartArrayPointer<char> debug_name; | 1534 base::SmartArrayPointer<char> debug_name; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1607 } | 1606 } |
1608 | 1607 |
1609 data->DeleteRegisterAllocationZone(); | 1608 data->DeleteRegisterAllocationZone(); |
1610 } | 1609 } |
1611 | 1610 |
1612 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1611 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
1613 | 1612 |
1614 } // namespace compiler | 1613 } // namespace compiler |
1615 } // namespace internal | 1614 } // namespace internal |
1616 } // namespace v8 | 1615 } // namespace v8 |
OLD | NEW |