OSDN Git Service

ART: Print and dump functionalities per pass
authorJean Christophe Beyler <jean.christophe.beyler@intel.com>
Tue, 29 Apr 2014 20:42:08 +0000 (13:42 -0700)
committerJean Christophe Beyler <jean.christophe.beyler@intel.com>
Tue, 27 May 2014 18:41:29 +0000 (11:41 -0700)
commit8bceccec7eddff8cd872aa20505b4a3a6be60a16
treec0f7fb0dcf4041542ec8de58c881faf03db07b54
parent132236a802a82cc7d27f82e34e40082ef5c17375
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 <jean.christophe.beyler@intel.com>
Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
Signed-off-by: Yixin Shou <yixin.shou@intel.com>
Signed-off-by: Chao-ying Fu <chao-ying.fu@intel.com>
Signed-off-by: Udayan Banerji <udayan.banerji@intel.com>
compiler/dex/compiler_ir.h
compiler/dex/frontend.cc
compiler/dex/pass.h
compiler/dex/pass_driver.h
compiler/dex/pass_driver_me.cc
dex2oat/dex2oat.cc