Merge "Fix runtime_support_llvm for ART_USE_LLVM_COMPILER." into dalvik-dev
diff --git a/src/compiler_llvm/runtime_support_llvm.cc b/src/compiler_llvm/runtime_support_llvm.cc
index 2eb9c65..7f3467b 100644
--- a/src/compiler_llvm/runtime_support_llvm.cc
+++ b/src/compiler_llvm/runtime_support_llvm.cc
@@ -83,7 +83,7 @@
 }
 
 void art_test_suspend_from_code(Thread* thread) {
-  Runtime::Current()->GetThreadList()->FullSuspendCheck(thread);
+  thread->FullSuspendCheck();
 }
 
 ShadowFrame* art_push_shadow_frame_from_code(Thread* thread, ShadowFrame* new_shadow_frame,
@@ -660,7 +660,7 @@
   ScopedJniEnvLocalRefState env_state(env);
 
   // Create local ref. copies of the receiver
-  jobject rcvr_jobj = ts.AddLocalReference<jobject>(receiver);
+  jobject rcvr_jobj = soa.AddLocalReference<jobject>(receiver);
 
   // Convert proxy method into expected interface method
   Method* interface_method = proxy_method->FindOverriddenMethod();
@@ -670,7 +670,7 @@
   // Set up arguments array and place in local IRT during boxing (which may allocate/GC)
   jvalue args_jobj[3];
   args_jobj[0].l = rcvr_jobj;
-  args_jobj[1].l = ts.AddLocalReference<jobject>(interface_method);
+  args_jobj[1].l = soa.AddLocalReference<jobject>(interface_method);
   // Args array, if no arguments then NULL (don't include receiver in argument count)
   args_jobj[2].l = NULL;
   ObjectArray<Object>* args = NULL;
@@ -680,7 +680,7 @@
       CHECK(thread->IsExceptionPending());
       return;
     }
-    args_jobj[2].l = ts.AddLocalReference<jobjectArray>(args);
+    args_jobj[2].l = soa.AddLocalReference<jobjectArray>(args);
   }
 
   // Get parameter types.