From e490b01c12d33f3bd5c247b55b47e507cc9c8fab Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 24 Feb 2015 11:32:46 +0000 Subject: Quick: Rewrite type inference pass. Use method signatures, field types and types embedded in dex insns for type inference. Perform the type inference in two phases, first a simple pass that records all types implied by individual insns, and then an iterative pass to propagate those types further via phi, move, if-cc and aget/aput insns. Bug: 19419671 Change-Id: Id38579d48a44fc5eadd13780afb6d370093056f9 --- compiler/driver/dex_compilation_unit.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/driver/dex_compilation_unit.h') diff --git a/compiler/driver/dex_compilation_unit.h b/compiler/driver/dex_compilation_unit.h index 03ae489da1..398300699e 100644 --- a/compiler/driver/dex_compilation_unit.h +++ b/compiler/driver/dex_compilation_unit.h @@ -21,6 +21,7 @@ #include "dex_file.h" #include "jni.h" +#include "base/arena_object.h" namespace art { namespace mirror { @@ -31,7 +32,7 @@ class ClassLinker; struct CompilationUnit; class VerifiedMethod; -class DexCompilationUnit { +class DexCompilationUnit : public DeletableArenaObject { public: explicit DexCompilationUnit(CompilationUnit* cu); -- cgit v1.2.3-59-g8ed1b