summaryrefslogtreecommitdiff
path: root/compiler/utils/jni_macro_assembler.h
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2022-06-24 23:14:24 +0100
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-07-04 16:25:06 +0000
commitdbfa799b5e9d48a4f93410da37b199aaa8878d9b (patch)
tree485471e2addb3bf236cbd3459e0fe99a45598978 /compiler/utils/jni_macro_assembler.h
parent865006d268317b0ebd9e9a28671e8157e3983726 (diff)
Add a new version of `GetDexOptNeeded`.
The new version has two improvements: - It takes a bit field `DexOptTrigger` as an input instead of `profile_changed` and `downgrade`. The bit field gives the caller more flexibility to customize the conditions to trigger dexopt. - It returns the result in a more structured way: a boolean representing whether dexopt should be performed and an object containing whether the vdex file is usable and the location of the usable files. The old version is refactored so that it shares the same underlying logic with the new version. The behavior of the old version remains unchanged. Bug: 229268202 Test: m test-art-host-gtest-art_runtime_tests Change-Id: I2841b8b0494e1bc7e0a57f0690d817b67bde64dc Merged-In: I2841b8b0494e1bc7e0a57f0690d817b67bde64dc (cherry picked from commit af72f6cf8762bbebe472b8562df116efe4327a9c)
Diffstat (limited to 'compiler/utils/jni_macro_assembler.h')
0 files changed, 0 insertions, 0 deletions