Detect special methods at the end of verification.
This moves special method handling to method inliner
and prepares for eventual inlining of these methods.
Change-Id: I51c51b940fb7bc714e33135cd61be69467861352
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc
index 6aabb2a..adfbf2f 100644
--- a/compiler/dex/frontend.cc
+++ b/compiler/dex/frontend.cc
@@ -63,21 +63,12 @@
LLVMInfo::~LLVMInfo() {
}
-QuickCompilerContext::QuickCompilerContext()
- : inliner_map_(new DexFileToMethodInlinerMap()) {
-}
-
-QuickCompilerContext::~QuickCompilerContext() {
-}
-
extern "C" void ArtInitQuickCompilerContext(art::CompilerDriver& driver) {
CHECK(driver.GetCompilerContext() == NULL);
- driver.SetCompilerContext(new QuickCompilerContext());
}
extern "C" void ArtUnInitQuickCompilerContext(art::CompilerDriver& driver) {
- delete reinterpret_cast<QuickCompilerContext*>(driver.GetCompilerContext());
- driver.SetCompilerContext(NULL);
+ CHECK(driver.GetCompilerContext() == NULL);
}
/* Default optimizer/debug setting for the compiler. */