From e21dc3db191df04c100620965bee4617b3b24397 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 8 Dec 2014 16:59:43 -0800 Subject: ART: Swap-space in the compiler Introduce a swap-space and corresponding allocator to transparently switch native allocations to memory backed by a file. Bug: 18596910 (cherry picked from commit 62746d8d9c4400e4764f162b22bfb1a32be287a9) Change-Id: I131448f3907115054a592af73db86d2b9257ea33 --- compiler/optimizing/code_generator.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index 1d42c47d56..2e7eca2ead 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -44,7 +44,10 @@ class Assembler; class CodeGenerator; class DexCompilationUnit; class ParallelMoveResolver; +class SrcMapElem; +template class SrcMap; +using DefaultSrcMap = SrcMap>; class CodeAllocator { public: @@ -146,7 +149,7 @@ class CodeGenerator : public ArenaObject { void GenerateSlowPaths(); - void BuildMappingTable(std::vector* vector, SrcMap* src_map) const; + void BuildMappingTable(std::vector* vector, DefaultSrcMap* src_map) const; void BuildVMapTable(std::vector* vector) const; void BuildNativeGCMap( std::vector* vector, const DexCompilationUnit& dex_compilation_unit) const; -- cgit v1.2.3-59-g8ed1b