Use HiddenArg instead of hardcoded x12.
authorAditya Mandaleeka <adityam@microsoft.com>
Fri, 27 Apr 2018 19:20:30 +0000 (12:20 -0700)
committerAditya Mandaleeka <adityam@microsoft.com>
Fri, 27 Apr 2018 19:20:30 +0000 (12:20 -0700)
src/vm/arm64/PInvokeStubs.asm
src/vm/arm64/pinvokestubs.S

index 8e288cb..eb522d9 100644 (file)
@@ -64,8 +64,8 @@ __PInvokeGenStubFuncName SETS "$__PInvokeGenStubFuncName":CC:"_RetBuffArg"
             ; The way we do this is to shift the managed target to the left by one bit and then set the
             ; least significant bit to 1.  This works because MethodDesc* are always 8-byte aligned.
             ;
-            lsl             x12, x12, #1
-            orr             x12, x12, #1
+            lsl             $HiddenArg, $HiddenArg, #1
+            orr             $HiddenArg, $HiddenArg, #1
         ENDIF
 
         EPILOG_BRANCH_REG   x9 
index 674d723..2ff6a8d 100644 (file)
@@ -38,8 +38,8 @@
             // The way we do this is to shift the managed target to the left by one bit and then set the
             // least significant bit to 1.  This works because MethodDesc* are always 8-byte aligned.
             //
-            lsl             x12, x12, #1
-            orr             x12, x12, #1
+            lsl             \HiddenArg, \HiddenArg, #1
+            orr             \HiddenArg, \HiddenArg, #1
         .endif
 
         EPILOG_BRANCH_REG   x9