Fixed tracer to stub additional classes as they're loaded.

Change-Id: I00425f0ce6778426b9de3df80568c19b008324b4
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 4226ea5..5ff2293 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -1288,7 +1288,16 @@
   if (method->IsNative()) {
     // unregistering restores the dlsym lookup stub
     method->UnregisterNative();
-    return;
+  }
+
+  if (Runtime::Current()->IsMethodTracingActive()) {
+#if defined(__arm__)
+    Trace* tracer = Runtime::Current()->GetTracer();
+    void* trace_stub = reinterpret_cast<void*>(art_trace_entry_from_code);
+    tracer->SaveAndUpdateCode(method.get(), trace_stub);
+#else
+    UNIMPLEMENTED(WARNING);
+#endif
   }
 }