summaryrefslogtreecommitdiff
path: root/src/vm/amd64
diff options
context:
space:
mode:
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2018-04-19 12:22:10 -0400
committerJan Kotas <jkotas@microsoft.com>2018-04-19 09:22:10 -0700
commit094a2e8d1d46f373577c0d5a494547e0ed563f40 (patch)
tree152b74e19ea7873a8712ae4439d453fd1d871881 /src/vm/amd64
parentae0ce20407606a2fbb825eba2352ab5efd3f3d58 (diff)
downloadcoreclr-094a2e8d1d46f373577c0d5a494547e0ed563f40.tar.gz
coreclr-094a2e8d1d46f373577c0d5a494547e0ed563f40.tar.bz2
coreclr-094a2e8d1d46f373577c0d5a494547e0ed563f40.zip
[Arm64/Linux] Fix GenericPInvokeCalliHelper (#17659)
Diffstat (limited to 'src/vm/amd64')
-rw-r--r--src/vm/amd64/PInvokeStubs.asm8
-rw-r--r--src/vm/amd64/pinvokestubs.S8
2 files changed, 0 insertions, 16 deletions
diff --git a/src/vm/amd64/PInvokeStubs.asm b/src/vm/amd64/PInvokeStubs.asm
index 4801697fee..7255fa2ebf 100644
--- a/src/vm/amd64/PInvokeStubs.asm
+++ b/src/vm/amd64/PInvokeStubs.asm
@@ -32,14 +32,6 @@ LEAF_ENTRY GenericPInvokeCalliHelper, _TEXT
jz GenericPInvokeCalliGenILStub
;
- ; We need to distinguish between a MethodDesc* and an unmanaged target in PInvokeStubForHost().
- ; 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.
- ;
- shl PINVOKE_CALLI_TARGET_REGISTER, 1
- or PINVOKE_CALLI_TARGET_REGISTER, 1
-
- ;
; jump to existing IL stub
;
jmp rax
diff --git a/src/vm/amd64/pinvokestubs.S b/src/vm/amd64/pinvokestubs.S
index 49697e1aad..dad668af23 100644
--- a/src/vm/amd64/pinvokestubs.S
+++ b/src/vm/amd64/pinvokestubs.S
@@ -25,14 +25,6 @@ LEAF_ENTRY GenericPInvokeCalliHelper, _TEXT
jz C_FUNC(GenericPInvokeCalliGenILStub)
//
- // We need to distinguish between a MethodDesc* and an unmanaged target in PInvokeStubForHost().
- // 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.
- //
- shl PINVOKE_CALLI_TARGET_REGISTER, 1
- or PINVOKE_CALLI_TARGET_REGISTER, 1
-
- //
// jump to existing IL stub
//
jmp rax