x86 JNI compiler and unit tests.

Change-Id: I4c2e10328961a2e8e27c90777fe2a93737b21143
diff --git a/src/runtime.cc b/src/runtime.cc
index 0f768c5..28af9dd 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -65,14 +65,13 @@
   return true;
 }
 
-bool AttachCurrentThread() {
-  LOG(FATAL) << "Unimplemented";
-  return false;
+bool Runtime::AttachCurrentThread() {
+  return Thread::Attach() != NULL;
 }
 
-bool DetachCurrentThread() {
-  LOG(FATAL) << "Unimplemented";
-  return false;
+bool Runtime::DetachCurrentThread() {
+  LOG(WARNING) << "Unimplemented: Runtime::DetachCurrentThread";
+  return true;
 }
 
 }  // namespace art