summaryrefslogtreecommitdiff
path: root/src/compiler/compiler_ir.h
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2013-02-07 09:33:02 -0800
committer buzbee <buzbee@google.com> 2013-02-07 10:39:53 -0800
commitbbdd05378516f11443fce29a0fbff25ad993db23 (patch)
tree29b8d389ec032b8d09d82ec801909a6535f665c4 /src/compiler/compiler_ir.h
parent8dbb708c7dc05c786329eb5c3fff3194ab6472ac (diff)
[Portable Compiler] Rework return block marking.
Move the detection of blocks that contain a return from the GBC emit pass up to Dex parsing. This allows logic that detects backward branches that go to method return to skip suspend checks. Change-Id: I2a606b49850235b59c5faf237a08729e98220f4d
Diffstat (limited to 'src/compiler/compiler_ir.h')
-rw-r--r--src/compiler/compiler_ir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/compiler_ir.h b/src/compiler/compiler_ir.h
index 056c308c79..c652f0c00d 100644
--- a/src/compiler/compiler_ir.h
+++ b/src/compiler/compiler_ir.h
@@ -230,8 +230,8 @@ struct BasicBlock {
bool catch_entry;
bool explicit_throw;
bool conditional_branch;
- bool has_return; // Contains a return.
- bool dominates_return; // Is a member of return extended basic block
+ bool terminated_by_return; // Block ends with a Dalvik return opcode.
+ bool dominates_return; // Is a member of return extended basic block.
uint16_t start_offset;
uint16_t nesting_depth;
BBType block_type;