From 5d3b002b9a244b5dc25fe97fedcb92851d9073f7 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 31 Aug 2017 10:36:31 -0700 Subject: ART: Change CanAssumeVerified to GetPreviousClassState Return any stored class state instead of a bool to allow more recognized states in the future. Bug: 63467744 Bug: 65318848 Test: m test-art-host Change-Id: Id097273a41e09ee77c8d53377ad9beb09104a944 --- compiler/driver/compiler_driver.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index ee36a92c17..18b54eefba 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -3053,10 +3053,4 @@ void CompilerDriver::SetDexFilesForOatFile(const std::vector& de } } -bool CompilerDriver::CanAssumeVerified(ClassReference ref) const { - mirror::Class::Status existing = mirror::Class::kStatusNotReady; - compiled_classes_.Get(DexFileReference(ref.first, ref.second), &existing); - return existing >= mirror::Class::kStatusVerified; -} - } // namespace art -- cgit v1.2.3-59-g8ed1b