From bbdd05378516f11443fce29a0fbff25ad993db23 Mon Sep 17 00:00:00 2001 From: buzbee Date: Thu, 7 Feb 2013 09:33:02 -0800 Subject: [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 --- src/compiler/compiler_ir.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/compiler_ir.h') 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; -- cgit v1.2.3-59-g8ed1b