diff options
| author | 2014-05-15 17:02:16 -0700 | |
|---|---|---|
| committer | 2014-07-11 17:17:10 -0700 | |
| commit | 98d1cc8033251c93786e2fa8c59a2e555a9493be (patch) | |
| tree | f0a76b8fff060ee484af09028da65a8339d57057 /runtime/entrypoints/entrypoint_utils.cc | |
| parent | aebf3cda094f34cf846d19a7724bdc8005267c95 (diff) | |
Improve performance of invokevirtual/invokeinterface with embedded imt/vtable
Add an embedded version of imt/vtable into class object. Both tables start at
fixed offset within class object so method/entry point can be loaded directly
from class object for invokeinterface/invokevirtual.
Bug: 8142917
Change-Id: I4240d58cfbe9250107c95c0708c036854c455968
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.cc')
| -rw-r--r-- | runtime/entrypoints/entrypoint_utils.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc index a0e32f520d..d029df2c7f 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -16,6 +16,7 @@ #include "entrypoints/entrypoint_utils.h" +#include "base/mutex.h" #include "class_linker-inl.h" #include "dex_file-inl.h" #include "gc/accounting/card_table-inl.h" @@ -25,7 +26,6 @@ #include "mirror/object-inl.h" #include "object_utils.h" #include "mirror/object_array-inl.h" -#include "mirror/proxy.h" #include "reflection.h" #include "scoped_thread_state_change.h" #include "ScopedLocalRef.h" @@ -219,8 +219,7 @@ JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, cons mirror::Throwable* exception = soa.Self()->GetException(NULL); if (exception->IsCheckedException()) { mirror::Object* rcvr = soa.Decode<mirror::Object*>(rcvr_jobj); - mirror::SynthesizedProxyClass* proxy_class = - down_cast<mirror::SynthesizedProxyClass*>(rcvr->GetClass()); + mirror::Class* proxy_class = rcvr->GetClass(); mirror::ArtMethod* interface_method = soa.Decode<mirror::ArtMethod*>(interface_method_jobj); mirror::ArtMethod* proxy_method = |