summaryrefslogtreecommitdiffstats
path: root/runtime/arch
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2015-04-28 13:31:38 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-28 13:31:39 +0000
commitd4667dea87e68ee3ee64581af138f59300a5c510 (patch)
treeeee797e54cb5e67bf74598f2680a8f9b644820fb /runtime/arch
parent95935f28a7206c32592f6744cfc4c63e4d87ecdf (diff)
parente85e123a2dff7d4b20266183a0583f9364a8b824 (diff)
downloadart-d4667dea87e68ee3ee64581af138f59300a5c510.tar.gz
art-d4667dea87e68ee3ee64581af138f59300a5c510.tar.bz2
art-d4667dea87e68ee3ee64581af138f59300a5c510.zip
Merge "ART: Add FOUR_ARG_DOWNCALL macro for MIPS64 entry points."
Diffstat (limited to 'runtime/arch')
-rw-r--r--runtime/arch/mips64/quick_entrypoints_mips64.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/arch/mips64/quick_entrypoints_mips64.S b/runtime/arch/mips64/quick_entrypoints_mips64.S
index f867aa8367..d781e7662c 100644
--- a/runtime/arch/mips64/quick_entrypoints_mips64.S
+++ b/runtime/arch/mips64/quick_entrypoints_mips64.S
@@ -1265,6 +1265,16 @@ ENTRY \name
END \name
.endm
+.macro FOUR_ARG_DOWNCALL name, entrypoint, return
+ .extern \entrypoint
+ENTRY \name
+ SETUP_REFS_ONLY_CALLEE_SAVE_FRAME # save callee saves in case of GC
+ jal \entrypoint
+ move $a4, rSELF # pass Thread::Current
+ \return
+END \name
+.endm
+
// Generate the allocation entrypoints for each allocator.
GENERATE_ALL_ALLOC_ENTRYPOINTS