diff options
| author | 2016-12-16 16:09:08 +0000 | |
|---|---|---|
| committer | 2016-12-19 16:55:11 +0000 | |
| commit | 568763405f6eb7cb78fd39272569e30fe21be85e (patch) | |
| tree | 10ecca06c9fa73a0d74b6dbdd7edb7c5c867014b /compiler/optimizing/instruction_builder.cc | |
| parent | 20b66e727a927267bc472958e86f9b4ada42c7fc (diff) | |
Sharpen HLoadClass from inliner.
Also cleanup HLoadClass constructor.
Test: ART_TEST_JIT=true m test-art-host-run-test
Change-Id: I8f803b05fb8a7267d1421ca9c032e624f27efed3
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
| -rw-r--r-- | compiler/optimizing/instruction_builder.cc | 20 | 
1 files changed, 5 insertions, 15 deletions
| diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index b97581beb3..1ca3218d77 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -937,9 +937,7 @@ bool HInstructionBuilder::BuildNewInstance(dex::TypeIndex type_index, uint32_t d        outer_dex_file,        IsOutermostCompilingClass(type_index),        dex_pc, -      needs_access_check, -      /* is_in_dex_cache */ false, -      /* is_in_boot_image */ false); +      needs_access_check);    AppendInstruction(load_class);    HInstruction* cls = load_class; @@ -1029,9 +1027,7 @@ HClinitCheck* HInstructionBuilder::ProcessClinitCheckForInvoke(          outer_dex_file,          is_outer_class,          dex_pc, -        /*needs_access_check*/ false, -        /* is_in_dex_cache */ false, -        /* is_in_boot_image */ false); +        /*needs_access_check*/ false);      AppendInstruction(load_class);      clinit_check = new (arena_) HClinitCheck(load_class, dex_pc);      AppendInstruction(clinit_check); @@ -1388,9 +1384,7 @@ bool HInstructionBuilder::BuildStaticFieldAccess(const Instruction& instruction,                                                   outer_dex_file,                                                   is_outer_class,                                                   dex_pc, -                                                 /*needs_access_check*/ false, -                                                 /* is_in_dex_cache */ false, -                                                 /* is_in_boot_image */ false); +                                                 /*needs_access_check*/ false);    AppendInstruction(constant);    HInstruction* cls = constant; @@ -1664,9 +1658,7 @@ void HInstructionBuilder::BuildTypeCheck(const Instruction& instruction,        dex_file,        IsOutermostCompilingClass(type_index),        dex_pc, -      !can_access, -      /* is_in_dex_cache */ false, -      /* is_in_boot_image */ false); +      !can_access);    AppendInstruction(cls);    TypeCheckKind check_kind = ComputeTypeCheckKind(resolved_class); @@ -2656,9 +2648,7 @@ bool HInstructionBuilder::ProcessDexInstruction(const Instruction& instruction,            *dex_file_,            IsOutermostCompilingClass(type_index),            dex_pc, -          !can_access, -          /* is_in_dex_cache */ false, -          /* is_in_boot_image */ false)); +          !can_access));        UpdateLocal(instruction.VRegA_21c(), current_block_->GetLastInstruction());        break;      } |