OSDN Git Service

Add a GTest for Assembly Stubs, Add some ARM64 and X86-64 Stubs
authorAndreas Gampe <agampe@google.com>
Tue, 22 Apr 2014 22:44:50 +0000 (15:44 -0700)
committerAndreas Gampe <agampe@google.com>
Fri, 25 Apr 2014 14:38:19 +0000 (07:38 -0700)
commit525cde2dd7cc7ad4212765ad3975cf260a934d3e
treebd2b4c1d34414708be60e560666d24f56311df05
parent1b4e3d5bc1e2d604adeda4ebbd137f20ee041138
Add a GTest for Assembly Stubs, Add some ARM64 and X86-64 Stubs

This GTest adds some runtime testing for the stubs that does not
rely on the compiler. This should allow to add or update the stubs
and do testing, especially on architectures without working compiler.

This test is a bit dangerous: if it doesn't know how to handle an
architecture, it will only log a warning. This is so that testing
does not break at the moment. The warning is forced to stdout, too,
so that it is always visible.

Add art_quick_check_cast to ARM64 and X86-64. Add art_quick_memcpy
to X86-64. The latter should be removed in a good compiler, as it is
practically only overhead. Add minor CFI information in ARM.

Change-Id: Ia9c6d0f4035eb1527c12b5f6067dece59e25528d
build/Android.gtest.mk
runtime/arch/arm/quick_entrypoints_arm.S
runtime/arch/arm64/quick_entrypoints_arm64.S
runtime/arch/stub_test.cc [new file with mode: 0644]
runtime/arch/x86_64/quick_entrypoints_x86_64.S