Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Compile return-void-barrier
Browse files Browse the repository at this point in the history
It seems to be an uncommon instruction, but it can easily be compiled.
Cherry-picked from https://android-review.googlesource.com/#/c/123156/.

Fixes rovo89/Xposed#60.
  • Loading branch information
rovo89 authored and wanam committed Sep 11, 2015
1 parent 14b7c37 commit 1522a28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compiler/dex/mir_analysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ const uint32_t MIRGraph::analysis_attributes_[kMirOpLast] = {
// 72 INVOKE_INTERFACE {vD, vE, vF, vG, vA}
AN_INVOKE | AN_HEAVYWEIGHT,

// 73 UNUSED_73
AN_NONE,
// 73 RETURN_VOID_BARRIER:
AN_BRANCH,

// 74 INVOKE_VIRTUAL_RANGE {vCCCC .. vNNNN}
AN_INVOKE | AN_HEAVYWEIGHT,
Expand Down
2 changes: 1 addition & 1 deletion compiler/dex/mir_dataflow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const uint64_t MIRGraph::oat_data_flow_attributes_[kMirOpLast] = {
// 72 INVOKE_INTERFACE {vD, vE, vF, vG, vA}
DF_FORMAT_35C | DF_NULL_CHK_OUT0 | DF_UMS,

// 73 UNUSED_73
// 73 RETURN_VOID_BARRIER
DF_NOP,

// 74 INVOKE_VIRTUAL_RANGE {vCCCC .. vNNNN}
Expand Down
1 change: 1 addition & 0 deletions compiler/dex/quick/mir_to_lir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ void Mir2Lir::CompileDalvikInstruction(MIR* mir, BasicBlock* bb, LIR* label_list
GenMoveException(rl_dest);
break;

case Instruction::RETURN_VOID_BARRIER:
case Instruction::RETURN_VOID:
if (((cu_->access_flags & kAccConstructor) != 0) &&
cu_->compiler_driver->RequiresConstructorBarrier(Thread::Current(), cu_->dex_file,
Expand Down

0 comments on commit 1522a28

Please sign in to comment.