OSDN Git Service

Avoid register pool allocations on the heap.
authorVladimir Marko <vmarko@google.com>
Thu, 5 Jun 2014 09:57:05 +0000 (10:57 +0100)
committerVladimir Marko <vmarko@google.com>
Thu, 5 Jun 2014 10:13:21 +0000 (11:13 +0100)
commit089142cf1d0c028b5a7c703baf0b97f4a4ada3f7
tree0868af5fe31881ec24ed1b549fcb36fd91dd3f7c
parent8ab62f8cb31eb2d42eb2dd58becea4382719be54
Avoid register pool allocations on the heap.

Create a helper template class ArrayRef and use it instead
of std::vector<> for register pools in target_<arch>.cc to
avoid these heap allocations during program startup.

Change-Id: I4ab0205af9c1d28a239c0a105fcdc60ba800a70a
compiler/dex/quick/arm/target_arm.cc
compiler/dex/quick/arm64/target_arm64.cc
compiler/dex/quick/mips/target_mips.cc
compiler/dex/quick/mir_to_lir.h
compiler/dex/quick/ralloc_util.cc
compiler/dex/quick/x86/target_x86.cc
compiler/utils/array_ref.h [new file with mode: 0644]