diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-06-24 04:58:45 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-06-24 05:10:49 +0300 |
commit | 844e78c96b96b745182a80aa6b600de0059a3204 (patch) | |
tree | 06fd396570bdc5c4410ab699388687a97c6bdfb8 /src/Native/Runtime/amd64 | |
parent | 42f9782cfb2ba8619651ff00f7d348f371503d8b (diff) |
Workaround issue in Intel assembler
Addition of OFFSETOF__InterfaceDispatchCache__m_rgEntries was getting dropped by the assembler in the original code for some reason.
Diffstat (limited to 'src/Native/Runtime/amd64')
-rw-r--r-- | src/Native/Runtime/amd64/StubDispatch.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Native/Runtime/amd64/StubDispatch.S b/src/Native/Runtime/amd64/StubDispatch.S index 9f95893cc..34145b2e3 100644 --- a/src/Native/Runtime/amd64/StubDispatch.S +++ b/src/Native/Runtime/amd64/StubDispatch.S @@ -18,14 +18,14 @@ LEAF_ENTRY RhpInterfaceDispatch\entries, _TEXT // Load the EEType from the object instance in rdi. mov rax, [rdi] - CurrentOffset = 0 + CurrentOffset = OFFSETOF__InterfaceDispatchCache__m_rgEntries // For each entry in the cache, see if its EEType type matches the EEType in rax. // If so, call the second cache entry. If not, skip the InterfaceDispatchCacheEntry. .rept \entries - cmp rax, [r11 + OFFSETOF__InterfaceDispatchCache__m_rgEntries + CurrentOffset] + cmp rax, [r11 + CurrentOffset] jne 0f - jmp [r11 + OFFSETOF__InterfaceDispatchCache__m_rgEntries + CurrentOffset + 8] + jmp [r11 + CurrentOffset + 8] 0: CurrentOffset = CurrentOffset + 16 .endr |