diff options
author | buzbee <buzbee@google.com> | 2013-07-19 10:58:21 -0700 |
---|---|---|
committer | buzbee <buzbee@google.com> | 2013-07-19 11:03:25 -0700 |
commit | 479f83c196d5a95e36196eac548dc6019e70a5be (patch) | |
tree | 60028690c0fefe64f919565b8cf846f2535e991a /compiler/dex/mir_graph.h | |
parent | 6eb5288264d68276085855bd041fa74fbca6827c (diff) | |
download | android_art-479f83c196d5a95e36196eac548dc6019e70a5be.tar.gz android_art-479f83c196d5a95e36196eac548dc6019e70a5be.tar.bz2 android_art-479f83c196d5a95e36196eac548dc6019e70a5be.zip |
Dex compiler: re-enable method pattern matching
The dex compiler's mechanism to detect simple methods and emit
streamlined code was disabled during the last big restructuring
(there was a question of how to make it useful for Portable as
well as Quick). This CL does not address the Portable question,
but turns the optimization back on for Quick.
See b/9428200
Change-Id: I9f25b41219d7a243ec64efb18278e5a874766f4d
Diffstat (limited to 'compiler/dex/mir_graph.h')
-rw-r--r-- | compiler/dex/mir_graph.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/dex/mir_graph.h b/compiler/dex/mir_graph.h index 9c63d9c5ed..342d2a296a 100644 --- a/compiler/dex/mir_graph.h +++ b/compiler/dex/mir_graph.h @@ -509,6 +509,14 @@ class MIRGraph { return reg_location_[method_sreg_]; } + bool IsSpecialCase() { + return special_case_ != kNoHandler; + } + + SpecialCaseHandler GetSpecialCase() { + return special_case_; + } + void BasicBlockCombine(); void CodeLayout(); void DumpCheckStats(); @@ -655,6 +663,7 @@ class MIRGraph { int method_sreg_; unsigned int attributes_; Checkstats* checkstats_; + SpecialCaseHandler special_case_; ArenaAllocator* arena_; }; |