runtime: windows callback code to match new func value representation

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7393048
This commit is contained in:
Alex Brainman 2013-02-22 12:21:42 +11:00
parent dbd409afb5
commit 6ec551887a
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ runtime·compilecallback(Eface fn, bool cleanstack)
// MOVL fn, AX
*p++ = 0xb8;
*(uint32*)p = (uint32)fn.data;
*(uint32*)p = (uint32)(*(byte**)fn.data);
p += 4;
// MOVL argsize, DX

View File

@ -78,7 +78,7 @@ runtime·compilecallback(Eface fn, bool /*cleanstack*/)
// MOVQ fn, AX
*p++ = 0x48;
*p++ = 0xb8;
*(uint64*)p = (uint64)fn.data;
*(uint64*)p = (uint64)(*(byte**)fn.data);
p += 8;
// PUSH AX
*p++ = 0x50;