diff options
author | 2015-09-29 19:01:15 +0100 | |
---|---|---|
committer | 2015-09-29 19:46:03 +0100 | |
commit | 5233f93ee336b3581ccdb993ff6342c52fec34b0 (patch) | |
tree | 225dc0ab491263ef56362a8d0fe2926266bd5047 /compiler/optimizing/register_allocator.cc | |
parent | de8a3f4dce1e9ff0e3be16956b06bafc8cd4f397 (diff) |
Optimizing: Tag even more arena allocations.
Tag previously "Misc" arena allocations with more specific
allocation types. Move some native heap allocations to the
arena in BCE.
Bug: 23736311
Change-Id: If8ef15a8b614dc3314bdfb35caa23862c9d4d25c
Diffstat (limited to 'compiler/optimizing/register_allocator.cc')
-rw-r--r-- | compiler/optimizing/register_allocator.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/optimizing/register_allocator.cc b/compiler/optimizing/register_allocator.cc index c43e58ffc4..9cdb89b7b3 100644 --- a/compiler/optimizing/register_allocator.cc +++ b/compiler/optimizing/register_allocator.cc @@ -187,7 +187,8 @@ void RegisterAllocator::AllocateRegistersInternal() { } number_of_registers_ = codegen_->GetNumberOfCoreRegisters(); - registers_array_ = allocator_->AllocArray<size_t>(number_of_registers_); + registers_array_ = allocator_->AllocArray<size_t>(number_of_registers_, + kArenaAllocRegisterAllocator); processing_core_registers_ = true; unhandled_ = &unhandled_core_intervals_; for (LiveInterval* fixed : physical_core_register_intervals_) { @@ -206,7 +207,8 @@ void RegisterAllocator::AllocateRegistersInternal() { handled_.clear(); number_of_registers_ = codegen_->GetNumberOfFloatingPointRegisters(); - registers_array_ = allocator_->AllocArray<size_t>(number_of_registers_); + registers_array_ = allocator_->AllocArray<size_t>(number_of_registers_, + kArenaAllocRegisterAllocator); processing_core_registers_ = false; unhandled_ = &unhandled_fp_intervals_; for (LiveInterval* fixed : physical_fp_register_intervals_) { |