summaryrefslogtreecommitdiff
path: root/compiler/dex/compiler_enums.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-07-04 18:02:38 -0700
committer Andreas Gampe <agampe@google.com> 2014-07-12 13:33:12 -0700
commitccc60264229ac96d798528d2cb7dbbdd0deca993 (patch)
tree998378a38ca4d510090c7b4e7832379989354680 /compiler/dex/compiler_enums.h
parentbc9127a5d451058aede5562e2b015caec618d008 (diff)
ART: Rework TargetReg(symbolic_reg, wide)
Make the standard implementation in Mir2Lir and the specialized one in the x86 backend return a pair when wide = "true". Introduce WideKind enumeration to improve code readability. Simplify generic code based on this implementation. Change-Id: I670d45aa2572eedfdc77ac763e6486c83f8e26b4
Diffstat (limited to 'compiler/dex/compiler_enums.h')
-rw-r--r--compiler/dex/compiler_enums.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/dex/compiler_enums.h b/compiler/dex/compiler_enums.h
index bdedadbcf8..69adb35766 100644
--- a/compiler/dex/compiler_enums.h
+++ b/compiler/dex/compiler_enums.h
@@ -548,6 +548,14 @@ enum VolatileKind {
std::ostream& operator<<(std::ostream& os, const VolatileKind& kind);
+enum WideKind {
+ kNotWide, // Non-wide view
+ kWide, // Wide view
+ kRef // Ref width
+};
+
+std::ostream& operator<<(std::ostream& os, const WideKind& kind);
+
} // namespace art
#endif // ART_COMPILER_DEX_COMPILER_ENUMS_H_