From 750359753444498d509a756fa9a042e9f3c432df Mon Sep 17 00:00:00 2001 From: Razvan A Lupusoru Date: Thu, 11 Sep 2014 15:24:59 -0700 Subject: ART: Deprecate CompilationUnit's code_item The code_item field is tracked in both the CompilationUnit and the MIRGraph. However, the existence of this field in CompilationUnit promotes bad practice because it creates assumption only a single code_item can be part of method. This patch deprecates this field and updates MIRGraph methods to make it easy to get same information as before. Part of this is the update to interface GetNumDalvikInsn which ensures to count all code_items in MIRGraph. Some dead code was also removed because it was not friendly to these updates. Change-Id: Ie979be73cc56350321506cfea58f06d688a7fe99 Signed-off-by: Razvan A Lupusoru --- compiler/dex/compiler_ir.h | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler/dex/compiler_ir.h') diff --git a/compiler/dex/compiler_ir.h b/compiler/dex/compiler_ir.h index c4e43fdf2c..37e3a7a592 100644 --- a/compiler/dex/compiler_ir.h +++ b/compiler/dex/compiler_ir.h @@ -58,7 +58,6 @@ struct CompilationUnit { jobject class_loader; // compiling method's class loader. uint16_t class_def_idx; // compiling method's defining class definition index. uint32_t method_idx; // compiling method's index into method_ids of DexFile. - const DexFile::CodeItem* code_item; // compiling method's DexFile code_item. uint32_t access_flags; // compiling method's access flags. InvokeType invoke_type; // compiling method's invocation type. const char* shorty; // compiling method's shorty. -- cgit v1.2.3-59-g8ed1b