From 8bceccec7eddff8cd872aa20505b4a3a6be60a16 Mon Sep 17 00:00:00 2001 From: Jean Christophe Beyler Date: Tue, 29 Apr 2014 13:42:08 -0700 Subject: ART: Print and dump functionalities per pass LOG is a great logging tool but sometimes a pass has some debugging text it want to be able to turn on/off easily. By going via a print_pass flag, we can actually turn it on/off easily per pass when debugging/instrumenting. - Added a pass printer to help debug messages for future passes. - Added a print_pass flag in CompilationUnit to filter out messages. At the same time, did a similar system for dumping the CFG. - Also moved some API into public from protected. Change-Id: Ie0e89a8fc773e8583f3e4ffd6e4bd2eebdbb2bf4 Signed-off-by: Jean Christophe Beyler Signed-off-by: Razvan A Lupusoru Signed-off-by: Yixin Shou Signed-off-by: Chao-ying Fu Signed-off-by: Udayan Banerji --- compiler/dex/frontend.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/dex/frontend.cc') diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc index 9bad736c8d..e2463025d9 100644 --- a/compiler/dex/frontend.cc +++ b/compiler/dex/frontend.cc @@ -105,7 +105,8 @@ CompilationUnit::CompilationUnit(ArenaPool* pool) arena_stack(pool), mir_graph(nullptr), cg(nullptr), - timings("QuickCompiler", true, false) { + timings("QuickCompiler", true, false), + print_pass(false) { } CompilationUnit::~CompilationUnit() { -- cgit v1.2.3-59-g8ed1b