summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.cc
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-05-04 11:28:03 +0100
committerDavid Brazdil <dbrazdil@google.com>2018-05-14 13:40:47 +0100
commit1ab0fa89aed1100a3e6b631cb188db1d759b1efc (patch)
treeac0045dacc945b00e3d1eda30dabe27435f9d835 /compiler/optimizing/loop_optimization.cc
parent6623bc389c43efc87668ce7465e19b195e765e22 (diff)
Refactor ClassLinker & ImageWriter to use a common resolution routine
ImageWriter prepopulates DexCaches of an app image, but does resolution directly on mirror::Class rather than going through the class linker where hidden API checks happen. This patch removes the duplicate code. Similarly, ClassLinker contains multiple methods for resolving methods and fields. Consolidate these into three common routines: - FindResolvedMethod - FindResolvedField - FindResolvedFieldJLS The CL also passes the correct class loader to ImageWriter::PruneAndPreloadDexCache because it would trip a DCHECK in class linker. Bug: 78548674 Test: art/test.py Change-Id: I12e383290945d2f44b209c32e8a7617533d86063
Diffstat (limited to 'compiler/optimizing/loop_optimization.cc')
0 files changed, 0 insertions, 0 deletions