Commit 6ec55188 authored by Alex Brainman's avatar Alex Brainman

runtime: windows callback code to match new func value representation

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7393048
parent dbd409af
...@@ -80,7 +80,7 @@ runtime·compilecallback(Eface fn, bool cleanstack) ...@@ -80,7 +80,7 @@ runtime·compilecallback(Eface fn, bool cleanstack)
// MOVL fn, AX // MOVL fn, AX
*p++ = 0xb8; *p++ = 0xb8;
*(uint32*)p = (uint32)fn.data; *(uint32*)p = (uint32)(*(byte**)fn.data);
p += 4; p += 4;
// MOVL argsize, DX // MOVL argsize, DX
......
...@@ -78,7 +78,7 @@ runtime·compilecallback(Eface fn, bool /*cleanstack*/) ...@@ -78,7 +78,7 @@ runtime·compilecallback(Eface fn, bool /*cleanstack*/)
// MOVQ fn, AX // MOVQ fn, AX
*p++ = 0x48; *p++ = 0x48;
*p++ = 0xb8; *p++ = 0xb8;
*(uint64*)p = (uint64)fn.data; *(uint64*)p = (uint64)(*(byte**)fn.data);
p += 8; p += 8;
// PUSH AX // PUSH AX
*p++ = 0x50; *p++ = 0x50;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment