From 9e3761d6b98e090cff2e30e0f5e9714f434dd0f2 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 6 Jan 2023 16:44:38 +0000 Subject: Remove one template argument to the switch interpreter. Dynamically check for SkipAccessChecks instead. arm64 apex goes from 49545216 bytes to 49324032, ~200KB savings. Test: test.py Change-Id: Iaa64f56485b15c0e3c0eaa31e469a2795035debe --- runtime/entrypoints/entrypoint_utils.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/entrypoints/entrypoint_utils.h') diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h index a69b055c1f..ae80352f72 100644 --- a/runtime/entrypoints/entrypoint_utils.h +++ b/runtime/entrypoints/entrypoint_utils.h @@ -77,7 +77,6 @@ inline ObjPtr AllocObjectFromCodeInitialized(ObjPtr ALWAYS_INLINE inline ObjPtr CheckArrayAlloc(dex::TypeIndex type_idx, int32_t component_count, ArtMethod* method, @@ -89,7 +88,7 @@ ALWAYS_INLINE inline ObjPtr CheckArrayAlloc(dex::TypeIndex type_i // it cannot be resolved, throw an error. If it can, use it to create an array. // When verification/compiler hasn't been able to verify access, optionally perform an access // check. -template +template ALWAYS_INLINE inline ObjPtr AllocArrayFromCode(dex::TypeIndex type_idx, int32_t component_count, ArtMethod* method, -- cgit v1.2.3-59-g8ed1b