summaryrefslogtreecommitdiff
path: root/compiler/utils/dex_instruction_utils.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2014-11-24 15:48:59 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-11-24 15:49:00 +0000
commitd7a6f48736d9ed27d8bab42237ee700a2737db8e (patch)
tree307ed28979275244052b245e8a3928514a560b26 /compiler/utils/dex_instruction_utils.h
parent1c51b2b01f7ac9d64838f46d895a534ea243f625 (diff)
parent26e7d454b9924f3673b075b05e4c604ad658a062 (diff)
Merge "Eliminate suspend checks on back-edges to return insn."
Diffstat (limited to 'compiler/utils/dex_instruction_utils.h')
-rw-r--r--compiler/utils/dex_instruction_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/utils/dex_instruction_utils.h b/compiler/utils/dex_instruction_utils.h
index 09d9419c0b..ad7d750dea 100644
--- a/compiler/utils/dex_instruction_utils.h
+++ b/compiler/utils/dex_instruction_utils.h
@@ -58,6 +58,10 @@ constexpr bool IsInstructionInvokeStatic(Instruction::Code opcode) {
return opcode == Instruction::INVOKE_STATIC || opcode == Instruction::INVOKE_STATIC_RANGE;
}
+constexpr bool IsInstructionGoto(Instruction::Code opcode) {
+ return Instruction::GOTO <= opcode && opcode <= Instruction::GOTO_32;
+}
+
constexpr bool IsInstructionIfCc(Instruction::Code opcode) {
return Instruction::IF_EQ <= opcode && opcode <= Instruction::IF_LE;
}