From f9f6441c665b5ff9004d3ed55014f46d416fb1bb Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 2 Sep 2015 14:05:49 +0100 Subject: Optimizing: Tag Arena allocations with their source. This adds the ability to track where we allocate memory when the kArenaAllocatorCountAllocations flag is turned on. Also move some allocations from native heap to the Arena and remove some unnecessary utilities. Bug: 23736311 Change-Id: I1aaef3fd405d1de444fe9e618b1ce7ecef07ade3 --- compiler/optimizing/code_generator.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index cdd4675d2f..754b5ecd0e 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -19,6 +19,8 @@ #include "arch/instruction_set.h" #include "arch/instruction_set_features.h" +#include "base/arena_containers.h" +#include "base/arena_object.h" #include "base/bit_field.h" #include "driver/compiler_options.h" #include "globals.h" @@ -236,11 +238,11 @@ class CodeGenerator { } void BuildSourceMap(DefaultSrcMap* src_map) const; - void BuildMappingTable(std::vector* vector) const; - void BuildVMapTable(std::vector* vector) const; + void BuildMappingTable(ArenaVector* vector) const; + void BuildVMapTable(ArenaVector* vector) const; void BuildNativeGCMap( - std::vector* vector, const DexCompilationUnit& dex_compilation_unit) const; - void BuildStackMaps(std::vector* vector); + ArenaVector* vector, const DexCompilationUnit& dex_compilation_unit) const; + void BuildStackMaps(ArenaVector* vector); bool IsBaseline() const { return is_baseline_; -- cgit v1.2.3-59-g8ed1b