diff options
author | Ian Rogers <irogers@google.com> | 2013-09-06 11:11:25 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2013-09-06 11:11:44 -0700 |
commit | 9b297bfc588c7d38efd12a6f38cd2710fc513ee3 (patch) | |
tree | 681f512183be6d47ec76b18c02457896b4cd15cc /compiler/dex/dex_to_dex_compiler.cc | |
parent | 65ec92cf13c9d11c83711443a02e4249163d47f1 (diff) | |
download | android_art-9b297bfc588c7d38efd12a6f38cd2710fc513ee3.tar.gz android_art-9b297bfc588c7d38efd12a6f38cd2710fc513ee3.tar.bz2 android_art-9b297bfc588c7d38efd12a6f38cd2710fc513ee3.zip |
Refactor CompilerDriver::Compute..FieldInfo
Don't use non-const reference arguments.
Move ins before outs.
Change-Id: I7b251156388d8f07513b3da62ebfd29e5fd9ff76
Diffstat (limited to 'compiler/dex/dex_to_dex_compiler.cc')
-rw-r--r-- | compiler/dex/dex_to_dex_compiler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/dex/dex_to_dex_compiler.cc b/compiler/dex/dex_to_dex_compiler.cc index 7eef62c6cf..4a724b109a 100644 --- a/compiler/dex/dex_to_dex_compiler.cc +++ b/compiler/dex/dex_to_dex_compiler.cc @@ -216,8 +216,8 @@ void DexCompiler::CompileInstanceFieldAccess(Instruction* inst, uint32_t field_idx = inst->VRegC_22c(); int field_offset; bool is_volatile; - bool fast_path = driver_.ComputeInstanceFieldInfo(field_idx, &unit_, field_offset, - is_volatile, is_put); + bool fast_path = driver_.ComputeInstanceFieldInfo(field_idx, &unit_, is_put, + &field_offset, &is_volatile); if (fast_path && !is_volatile && IsUint(16, field_offset)) { VLOG(compiler) << "Quickening " << Instruction::Name(inst->Opcode()) << " to " << Instruction::Name(new_opcode) |