diff options
author | 2022-09-27 14:47:22 +0200 | |
---|---|---|
committer | 2022-09-30 09:01:08 +0200 | |
commit | d46716b7fae296d48dff663ced83889a7e2a9a11 (patch) | |
tree | ae4729d8711ffd040c451548b092355313e81f52 /dex2oat/driver/compiler_driver.cc | |
parent | 35be57fee6702d3847177343ab91899ba402eb9c (diff) |
Move `VerificationResults` to dex2oat/.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: Iff62c9b8c6e553113cbd12765bf0f691bbe24227
Diffstat (limited to 'dex2oat/driver/compiler_driver.cc')
-rw-r--r-- | dex2oat/driver/compiler_driver.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dex2oat/driver/compiler_driver.cc b/dex2oat/driver/compiler_driver.cc index 4d95248022..1cf7e2ffa8 100644 --- a/dex2oat/driver/compiler_driver.cc +++ b/dex2oat/driver/compiler_driver.cc @@ -252,10 +252,12 @@ class CompilerDriver::AOTCompilationStats { CompilerDriver::CompilerDriver( const CompilerOptions* compiler_options, + const VerificationResults* verification_results, Compiler::Kind compiler_kind, size_t thread_count, int swap_fd) : compiler_options_(compiler_options), + verification_results_(verification_results), compiler_(), compiler_kind_(compiler_kind), number_of_soft_verifier_failures_(0), @@ -493,7 +495,7 @@ static void CompileMethodQuick( // Method is annotated with @NeverCompile and should not be compiled. } else { const CompilerOptions& compiler_options = driver->GetCompilerOptions(); - const VerificationResults* results = compiler_options.GetVerificationResults(); + const VerificationResults* results = driver->GetVerificationResults(); DCHECK(results != nullptr); MethodReference method_ref(&dex_file, method_idx); // Don't compile class initializers unless kEverything. @@ -2511,7 +2513,8 @@ static void CompileDexFile(CompilerDriver* driver, ClassAccessor accessor(dex_file, class_def_index); CompilerDriver* const driver = context.GetCompiler(); // Skip compiling classes with generic verifier failures since they will still fail at runtime - if (driver->GetCompilerOptions().GetVerificationResults()->IsClassRejected(ref)) { + DCHECK(driver->GetVerificationResults() != nullptr); + if (driver->GetVerificationResults()->IsClassRejected(ref)) { return; } // Use a scoped object access to perform to the quick SkipClass check. |