summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2016-01-27 18:33:38 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-01-27 18:33:38 +0000
commitca5050538cbb0260c50530055f1ea880015327b7 (patch)
tree20520a5b5838b3251fd755584645d8ae85908b17 /compiler/driver/compiler_options.h
parent1be9e27239dc63bb4d8134df50be60f65a9d5da3 (diff)
parent47496c293b2b79c9747eeebafe444715202e7fc6 (diff)
Merge "ART: Allow --no-inline-from to specify multiple dex files."
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r--compiler/driver/compiler_options.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index 5294af8b2c..6989bd5bae 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -73,7 +73,7 @@ class CompilerOptions FINAL {
size_t num_dex_methods_threshold,
size_t inline_depth_limit,
size_t inline_max_code_units,
- const DexFile* no_inline_from,
+ const std::vector<const DexFile*>* no_inline_from,
bool include_patch_information,
double top_k_profile_threshold,
bool debuggable,
@@ -231,7 +231,7 @@ class CompilerOptions FINAL {
return abort_on_hard_verifier_failure_;
}
- const DexFile* GetNoInlineFromDexFile() const {
+ const std::vector<const DexFile*>* GetNoInlineFromDexFile() const {
return no_inline_from_;
}
@@ -268,8 +268,10 @@ class CompilerOptions FINAL {
size_t inline_depth_limit_;
size_t inline_max_code_units_;
- // A dex file from which we should not inline code.
- const DexFile* no_inline_from_;
+ // Dex files from which we should not inline code.
+ // This is usually a very short list (i.e. a single dex file), so we
+ // prefer vector<> over a lookup-oriented container, such as set<>.
+ const std::vector<const DexFile*>* no_inline_from_;
bool include_patch_information_;
// When using a profile file only the top K% of the profiled samples will be compiled.