From 0795f23920ee9aabf28e45c63cd592dcccf00216 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 27 Sep 2016 18:43:30 -0700 Subject: Clean up ScopedThreadStateChange to use ObjPtr Also fixed inclusion of -inl.h files in .h files by adding scoped_object_access-inl.h and scoped_fast_natvie_object_access-inl.h Changed AddLocalReference / Decode to use ObjPtr. Changed libartbenchmark to be debug to avoid linkage errors. Bug: 31113334 Test: test-art-host Change-Id: I4d2e160483a29d21e1e0e440585ed328b9811483 --- runtime/entrypoints/entrypoint_utils.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'runtime/entrypoints/entrypoint_utils.cc') diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc index bfa2b69045..38ee468f0e 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -33,7 +33,7 @@ #include "nth_caller_visitor.h" #include "oat_quick_method_header.h" #include "reflection.h" -#include "scoped_thread_state_change.h" +#include "scoped_thread_state_change-inl.h" #include "well_known_classes.h" namespace art { @@ -165,7 +165,7 @@ JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, cons CHECK(soa.Self()->IsExceptionPending()); return zero; } - soa.Decode* >(args_jobj)->Set(i, val); + soa.Decode>(args_jobj)->Set(i, val); } } } @@ -187,13 +187,13 @@ JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, cons return zero; } else { ArtMethod* interface_method = - soa.Decode(interface_method_jobj)->GetArtMethod(); + soa.Decode(interface_method_jobj)->GetArtMethod(); // This can cause thread suspension. PointerSize pointer_size = Runtime::Current()->GetClassLinker()->GetImagePointerSize(); mirror::Class* result_type = interface_method->GetReturnType(true /* resolve */, pointer_size); - mirror::Object* result_ref = soa.Decode(result); + ObjPtr result_ref = soa.Decode(result); JValue result_unboxed; - if (!UnboxPrimitiveForResult(result_ref, result_type, &result_unboxed)) { + if (!UnboxPrimitiveForResult(result_ref.Decode(), result_type, &result_unboxed)) { DCHECK(soa.Self()->IsExceptionPending()); return zero; } @@ -207,9 +207,9 @@ JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, cons bool declares_exception = false; { ScopedAssertNoThreadSuspension ants(__FUNCTION__); - mirror::Object* rcvr = soa.Decode(rcvr_jobj); + ObjPtr rcvr = soa.Decode(rcvr_jobj); mirror::Class* proxy_class = rcvr->GetClass(); - mirror::Method* interface_method = soa.Decode(interface_method_jobj); + ObjPtr interface_method = soa.Decode(interface_method_jobj); ArtMethod* proxy_method = rcvr->GetClass()->FindVirtualMethodForInterface( interface_method->GetArtMethod(), kRuntimePointerSize); auto virtual_methods = proxy_class->GetVirtualMethodsSlice(kRuntimePointerSize); -- cgit v1.2.3-59-g8ed1b