diff options
author | Sebastien Hertz <shertz@google.com> | 2013-09-06 16:43:43 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-09-06 16:43:43 +0000 |
commit | 866709c85da0c0d2c76968713e4dc4a35dce27fd (patch) | |
tree | b2fb26bfe6c7ef9ae340d2ebb3d7c0060a8f1582 /compiler/dex/dex_to_dex_compiler.cc | |
parent | 936bf024b26f84f9332d195a581912e95d9cbe4b (diff) | |
parent | 1e54d68ce8e77dfe63340275d11a072c5184c89a (diff) | |
download | android_art-866709c85da0c0d2c76968713e4dc4a35dce27fd.tar.gz android_art-866709c85da0c0d2c76968713e4dc4a35dce27fd.tar.bz2 android_art-866709c85da0c0d2c76968713e4dc4a35dce27fd.zip |
Merge "Disable devirtualization detection in DEX-to-DEX compiler." into dalvik-dev
Diffstat (limited to 'compiler/dex/dex_to_dex_compiler.cc')
-rw-r--r-- | compiler/dex/dex_to_dex_compiler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/dex/dex_to_dex_compiler.cc b/compiler/dex/dex_to_dex_compiler.cc index a392f829f6..3fa0eab96b 100644 --- a/compiler/dex/dex_to_dex_compiler.cc +++ b/compiler/dex/dex_to_dex_compiler.cc @@ -246,11 +246,12 @@ void DexCompiler::CompileInvokeVirtual(Instruction* inst, int vtable_idx; uintptr_t direct_code; uintptr_t direct_method; + // TODO: support devirtualization. + const bool kEnableDevirtualization = false; bool fast_path = driver_.ComputeInvokeInfo(&unit_, dex_pc, invoke_type, target_method, vtable_idx, direct_code, direct_method, - false); - // TODO: support devirtualization. + false, kEnableDevirtualization); if (fast_path && original_invoke_type == invoke_type) { if (vtable_idx >= 0 && IsUint(16, vtable_idx)) { VLOG(compiler) << "Quickening " << Instruction::Name(inst->Opcode()) |