Skip to content

Commit b2676ff

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Fix regiser usage in prologue
Summary: The usage of w1 here is clobbering the first arg in the static method case. Switches to using the scratch register. Reviewed By: yoney Differential Revision: D93780247 fbshipit-source-id: e84c7030db3070447abdff7ce73a4d6ed6a8b89d
1 parent 4e70f58 commit b2676ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cinderx/Jit/codegen/frame_asm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,9 @@ void FrameAsm::linkLightWeightFunctionFrame(
753753

754754
// Store owner
755755
asmjit::BaseNode* store_owner_cursor = as_->cursor();
756-
as_->mov(a64::w1, FRAME_OWNED_BY_THREAD);
756+
as_->mov(a64::w(arch::reg_scratch_0.id()), FRAME_OWNED_BY_THREAD);
757757
as_->strb(
758-
a64::w1,
758+
a64::w(arch::reg_scratch_0.id()),
759759
arch::ptr_resolve(
760760
as_,
761761
arch::fp,

0 commit comments

Comments
 (0)