From 89fde26f586883e04d295d6e30954cb5a0dc37bf Mon Sep 17 00:00:00 2001 From: Jean Christophe Beyler Date: Wed, 30 Apr 2014 11:40:07 -0700 Subject: ART: Add a last item in the MIROptimizationFlagPositions enumeration - Added a last item in the enumeration in order to be able to notice when an extended MIR opcode is beyond the last one known to libart, and hence must be an opcode added by code from a plugin. - Fixed the naming typo of the enumeration. Change-Id: I0e021ba54b0e60531338f23ca0ab64755e15229b Signed-Off-By: Jean Christophe Beyler --- compiler/dex/compiler_enums.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/dex/compiler_enums.h') diff --git a/compiler/dex/compiler_enums.h b/compiler/dex/compiler_enums.h index ba4b5c356a..ab0e3e53ff 100644 --- a/compiler/dex/compiler_enums.h +++ b/compiler/dex/compiler_enums.h @@ -131,7 +131,7 @@ enum ExtendedMIROpcode { kMirOpLast, }; -enum MIROptimizationFlagPositons { +enum MIROptimizationFlagPositions { kMIRIgnoreNullCheck = 0, kMIRNullCheckOnly, kMIRIgnoreRangeCheck, @@ -143,6 +143,7 @@ enum MIROptimizationFlagPositons { kMIRIgnoreSuspendCheck, kMIRDup, kMIRMark, // Temporary node mark. + kMIRLastMIRFlag, }; // For successor_block_list. -- cgit v1.2.3