diff options
author | 2014-07-31 15:33:43 +0100 | |
---|---|---|
committer | 2014-08-05 09:45:24 +0100 | |
commit | 8081d2b8d7a743729557051d0294e040e61c747a (patch) | |
tree | 37c2bd8616831df3a0f9f2df0932ebb517dbcd3d /compiler/dex/quick/codegen_util.cc | |
parent | 8f1dc7a20049ba6e2f3c7f800908bff811cdbea1 (diff) |
Create allocator adapter for using Arena in std containers.
Create ArenaAllocatorAdapter, similar to the existing
ScopedArenaAllocatorAdapter, for allocating memory for
standard containers via the ArenaAllocator. Add the ability
to specify allocation kind rather than just kArenaAllocSTL
to both adapters. Move the scoped arena allocator to the
scoped_arena_containers.h header file.
Define template aliases for containers using the new adapter
and change a few MIRGraph and Mir2Lir members to use them.
Change-Id: I9bbc50248e0fed81729497b848cb29bf68444268
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
-rw-r--r-- | compiler/dex/quick/codegen_util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc index 463f277e54..2a51b496a3 100644 --- a/compiler/dex/quick/codegen_util.cc +++ b/compiler/dex/quick/codegen_util.cc @@ -983,6 +983,8 @@ Mir2Lir::Mir2Lir(CompilationUnit* cu, MIRGraph* mir_graph, ArenaAllocator* arena estimated_native_code_size_(0), reg_pool_(NULL), live_sreg_(0), + core_vmap_table_(mir_graph->GetArena()->Adapter()), + fp_vmap_table_(mir_graph->GetArena()->Adapter()), num_core_spills_(0), num_fp_spills_(0), frame_size_(0), |