Skip to content

Instantly share code, notes, and snippets.

@niner
Created August 2, 2021 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niner/47eef9bdd295906820d1d5bf32c2dc0d to your computer and use it in GitHub Desktop.
Save niner/47eef9bdd295906820d1d5bf32c2dc0d to your computer and use it in GitHub Desktop.
diff --git a/src/jit/x64/emit.dasc b/src/jit/x64/emit.dasc
index 6ddfa9ed4..78e7504ee 100644
--- a/src/jit/x64/emit.dasc
+++ b/src/jit/x64/emit.dasc
@@ -3170,15 +3170,19 @@ void MVM_jit_emit_dispatch(MVMThreadContext *tc, MVMJitCompiler *compiler, MVMJi
| lea ARG2, MVMDISPINLINECACHEENTRY:ARG2[dispatch->ice_slot];
| mov ARG3, [ARG2]
| get_string ARG4, dispatch->id;
- | mov64 ARG5, callsite;
- | lea ARG6, [<5];
|.if WIN32
+ | mov64 TMP5, callsite;
+ | mov ARG5, TMP5;
+ | lea TMP5, [<5];
+ | mov ARG6, TMP6;
| mov qword [rsp+6*8], WORK;
| mov qword [rsp+7*8], TMP6;
| mov TMP6, -1;
| mov qword [rsp+8*8], TMP6;
|.else
+ | mov64 ARG5, callsite;
+ | lea ARG6, [<5];
| mov qword [rsp+0*8], WORK;
| mov qword [rsp+1*8], TMP6;
| mov TMP6, -1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment