diff options
| author | 2014-04-11 16:32:51 +0100 | |
|---|---|---|
| committer | 2014-04-14 18:03:41 +0100 | |
| commit | d3c5bebcb52a67cb06e7ab303eaf45f230c08b60 (patch) | |
| tree | 85df477ba745b1e2c85ab1d167b0297236060f2f /compiler/optimizing/code_generator.h | |
| parent | 043a7a6182870964021476484b1534106ff20600 (diff) | |
Avoid allocating OatFile::OatClass on the heap.
Avoid allocating a BitVector for OatFile::OatClass::bitmap_
with kOatClassSomeCompiled methods. That makes the OatClass
copy-constructible as it doesn't own any memory. We use that
in OatFile::OatDexFile::GetOatClass() to return the result
by value thus avoiding one or two heap allocations per call.
Change-Id: Ic7098109028a5b49e39ef626f877de86e732ed18
Diffstat (limited to 'compiler/optimizing/code_generator.h')
0 files changed, 0 insertions, 0 deletions