summaryrefslogtreecommitdiff
path: root/compiler/utils/jni_macro_assembler.h
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2022-10-21 13:28:05 +0000
committer Mythri Alle <mythria@google.com> 2022-11-04 07:46:10 +0000
commitbab6beb1f1299c13a0be5fbb4344facb6d7be7e3 (patch)
tree2524f91405543bc17e068a051a6932e9a71bfb37 /compiler/utils/jni_macro_assembler.h
parentc232049c9980e6a80baf91f135baf89f23d9075d (diff)
Update method exit hooks from JITed code to not use Stack visitor
Using NthCallerStackVisitor is expensive since that involves decoding method header and other tasks that are reasonably expensive especially when called on every method exit. When calling method exit hooks from JITed code a lot of this information like the frame_size, calling method are already known and can be directly passed to the method exit hook instead of computing them. Locally this change improves the performance by 70% on debuggable-cc config of golem benchmarks. Bug: 253232638 Test: art/test.py Change-Id: I3a1d80748c6d85e5fa1d3bd4aec0b29962ba0156
Diffstat (limited to 'compiler/utils/jni_macro_assembler.h')
-rw-r--r--compiler/utils/jni_macro_assembler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/utils/jni_macro_assembler.h b/compiler/utils/jni_macro_assembler.h
index 36de012495..a91176c785 100644
--- a/compiler/utils/jni_macro_assembler.h
+++ b/compiler/utils/jni_macro_assembler.h
@@ -215,6 +215,8 @@ class JNIMacroAssembler : public DeletableArenaObject<kArenaAllocAssembler> {
ManagedRegister scratch,
size_t size) = 0;
+ virtual void Move(ManagedRegister dst, size_t value) = 0;
+
virtual void MemoryBarrier(ManagedRegister scratch) = 0;
// Sign extension