mirror of https://github.com/golang/go.git
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:
parent
dbd409afb5
commit
6ec551887a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue