diff options
| author | 2016-04-15 17:30:05 +0000 | |
|---|---|---|
| committer | 2016-04-15 17:30:05 +0000 | |
| commit | 05241f4edbf6960aac7c04b0b98d05f16a23962b (patch) | |
| tree | 7b02580b8833e8411f061b6a162a58ecffd6ceaf /compiler/optimizing/instruction_builder.cc | |
| parent | 6233bff5bd04bb6030929ed6f55e34dde09aa8f3 (diff) | |
| parent | 062157f4e07b525728fa58f4ec57ffe1bf15d545 (diff) | |
Merge "Enable allocation elimination as part of LSE"
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
| -rw-r--r-- | compiler/optimizing/instruction_builder.cc | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index f5e49c2235..12cb826395 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -897,12 +897,12 @@ bool HInstructionBuilder::BuildNewInstance(uint16_t type_index, uint32_t dex_pc)    Handle<mirror::DexCache> outer_dex_cache = outer_compilation_unit_->GetDexCache();    bool finalizable; -  bool can_throw = NeedsAccessCheck(type_index, dex_cache, &finalizable); +  bool needs_access_check = NeedsAccessCheck(type_index, dex_cache, &finalizable);    // Only the non-resolved entrypoint handles the finalizable class case. If we    // need access checks, then we haven't resolved the method and the class may    // again be finalizable. -  QuickEntrypointEnum entrypoint = (finalizable || can_throw) +  QuickEntrypointEnum entrypoint = (finalizable || needs_access_check)        ? kQuickAllocObject        : kQuickAllocObjectInitialized; @@ -917,7 +917,7 @@ bool HInstructionBuilder::BuildNewInstance(uint16_t type_index, uint32_t dex_pc)        outer_dex_file,        IsOutermostCompilingClass(type_index),        dex_pc, -      /*needs_access_check*/ can_throw, +      needs_access_check,        compiler_driver_->CanAssumeTypeIsPresentInDexCache(outer_dex_cache, type_index));    AppendInstruction(load_class); @@ -933,7 +933,7 @@ bool HInstructionBuilder::BuildNewInstance(uint16_t type_index, uint32_t dex_pc)        dex_pc,        type_index,        *dex_compilation_unit_->GetDexFile(), -      can_throw, +      needs_access_check,        finalizable,        entrypoint));    return true; |