From 70bef0d8f6aa30b0da5c6ca56e1bc5729f74654b Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 15 Apr 2015 02:37:28 -0700 Subject: ART: Add compiled-methods Add a dex2oat option for compiled-methods, a more granular filter than compiled-classes. Add compiler-driver support for it. Refactor dex2oat to reuse file reading. Add a test to oat_test. Change-Id: I78d0d040bce7738b4bb7aabe7768b5788d2587ac --- compiler/common_compiler_test.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'compiler/common_compiler_test.h') diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h index d7b210d571..8d80a2da5c 100644 --- a/compiler/common_compiler_test.h +++ b/compiler/common_compiler_test.h @@ -18,6 +18,7 @@ #define ART_COMPILER_COMMON_COMPILER_TEST_H_ #include +#include #include #include "common_runtime_test.h" @@ -56,6 +57,18 @@ class CommonCompilerTest : public CommonRuntimeTest { virtual void SetUpRuntimeOptions(RuntimeOptions *options); + // Get the set of image classes given to the compiler-driver in SetUp. Note: the compiler + // driver assumes ownership of the set, so the test should properly release the set. + virtual std::unordered_set* GetImageClasses(); + + // Get the set of compiled classes given to the compiler-driver in SetUp. Note: the compiler + // driver assumes ownership of the set, so the test should properly release the set. + virtual std::unordered_set* GetCompiledClasses(); + + // Get the set of compiled methods given to the compiler-driver in SetUp. Note: the compiler + // driver assumes ownership of the set, so the test should properly release the set. + virtual std::unordered_set* GetCompiledMethods(); + virtual void TearDown(); void CompileClass(mirror::ClassLoader* class_loader, const char* class_name) -- cgit v1.2.3-59-g8ed1b