diff options
author | Mathieu Chartier <mathieuc@google.com> | 2018-01-02 14:26:50 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2018-01-02 17:53:21 -0800 |
commit | 73f21d45a41aaad1a02eecdf3bbdbf78ef599d5e (patch) | |
tree | 88d52c615cd8ec5bd8d2fad44fddeef0911e2458 /compiler/optimizing/code_generator.cc | |
parent | d096b3a09f0e7129813fb663fec5b5f131565d71 (diff) |
Remove CodeItem accessor functions
These are replaced by the accessor helpers.
Bug: 63756964
Test: test-art-host
Test: test/testrunner/testrunner.py --host -j30
Change-Id: Ic93d60b68b684eeb5f69be286b4e15b8f8f97542
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r-- | compiler/optimizing/code_generator.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index dee74e96dc..729b08e92d 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -45,6 +45,7 @@ #include "base/casts.h" #include "bytecode_utils.h" #include "class_linker.h" +#include "code_item_accessors-inl.h" #include "compiled_method.h" #include "dex/verified_method.h" #include "driver/compiler_driver.h" @@ -910,7 +911,8 @@ static void CheckLoopEntriesCanBeUsedForOsr(const HGraph& graph, } ArenaVector<size_t> covered( loop_headers.size(), 0, graph.GetAllocator()->Adapter(kArenaAllocMisc)); - for (const DexInstructionPcPair& pair : code_item.Instructions()) { + for (const DexInstructionPcPair& pair : CodeItemInstructionAccessor(&graph.GetDexFile(), + &code_item)) { const uint32_t dex_pc = pair.DexPc(); const Instruction& instruction = pair.Inst(); if (instruction.IsBranch()) { |