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/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 info()->AbortOptimization(kNotEnoughVirtualRegistersForValues); | 571 info()->AbortOptimization(kNotEnoughVirtualRegistersForValues); |
572 return Handle<Code>::null(); | 572 return Handle<Code>::null(); |
573 } | 573 } |
574 ZonePool::Scope zone_scope(data->zone_pool()); | 574 ZonePool::Scope zone_scope(data->zone_pool()); |
575 | 575 |
576 SmartArrayPointer<char> debug_name; | 576 SmartArrayPointer<char> debug_name; |
577 #ifdef DEBUG | 577 #ifdef DEBUG |
578 debug_name = GetDebugName(info()); | 578 debug_name = GetDebugName(info()); |
579 #endif | 579 #endif |
580 | 580 |
581 RegisterAllocator allocator(zone_scope.zone(), &frame, &sequence, | 581 |
| 582 RegisterAllocator allocator(RegisterAllocator::PlatformConfig(), |
| 583 zone_scope.zone(), &frame, &sequence, |
582 debug_name.get()); | 584 debug_name.get()); |
583 if (!allocator.Allocate(data->pipeline_statistics())) { | 585 if (!allocator.Allocate(data->pipeline_statistics())) { |
584 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); | 586 info()->AbortOptimization(kNotEnoughVirtualRegistersRegalloc); |
585 return Handle<Code>::null(); | 587 return Handle<Code>::null(); |
586 } | 588 } |
587 if (FLAG_trace_turbo) { | 589 if (FLAG_trace_turbo) { |
588 TurboCfgFile tcf(isolate()); | 590 TurboCfgFile tcf(isolate()); |
589 tcf << AsC1VAllocator("CodeGen", &allocator); | 591 tcf << AsC1VAllocator("CodeGen", &allocator); |
590 } | 592 } |
591 } | 593 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 } | 625 } |
624 | 626 |
625 | 627 |
626 void Pipeline::TearDown() { | 628 void Pipeline::TearDown() { |
627 InstructionOperand::TearDownCaches(); | 629 InstructionOperand::TearDownCaches(); |
628 } | 630 } |
629 | 631 |
630 } // namespace compiler | 632 } // namespace compiler |
631 } // namespace internal | 633 } // namespace internal |
632 } // namespace v8 | 634 } // namespace v8 |
OLD | NEW |