Add compiler stats, fix super call slow path

Add statistics of when the compiler framework has allowed AOT
compilation to be optimistic.
Fix bug that was forcing many calls to be unnecessarily slow path.

Change-Id: I8f0f6ab4738b11161855cf0dc424babed774c998
diff --git a/src/compiler/Compiler.h b/src/compiler/Compiler.h
index 451fae5..16a48df 100644
--- a/src/compiler/Compiler.h
+++ b/src/compiler/Compiler.h
@@ -173,7 +173,7 @@
 void oatArchDump(void);
 bool oatStartup(void);
 void oatShutdown(void);
-CompiledMethod* oatCompileMethod(const Compiler& compiler, bool is_direct,
+CompiledMethod* oatCompileMethod(Compiler& compiler, bool is_direct,
                                  uint32_t method_idx, const ClassLoader* class_loader,
                                  const DexFile& dex_file, OatInstructionSetType);
 void oatDumpStats(void);