mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/6g, cmd/8g: switch to DX for indirect call block
runtime: add context argument to gogocall Too many other things use AX, and at least one (stack zeroing) cannot be moved onto a different register. Use the less special DX instead. Preparation for step 2 of http://golang.org/s/go11func. Nothing interesting here, just split out so that we can see it's correct before moving on. R=ken2 CC=golang-dev https://golang.org/cl/7395050
This commit is contained in:
parent
d9001ef012
commit
6066fdcf38
8 changed files with 39 additions and 33 deletions
|
|
@ -276,7 +276,7 @@ runtime·newstack(void)
|
|||
if(reflectcall)
|
||||
runtime·gogocallfn(&label, (FuncVal*)m->morepc);
|
||||
else
|
||||
runtime·gogocall(&label, m->morepc);
|
||||
runtime·gogocall(&label, m->morepc, m->cret);
|
||||
|
||||
*(int32*)345 = 123; // never return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue