cmd/gc, reflect, runtime: switch to indirect func value representation

Step 1 of http://golang.org/s/go11func.

R=golang-dev, r, daniel.morsing, remyoudompheng
CC=golang-dev
https://golang.org/cl/7393045
This commit is contained in:
Russ Cox 2013-02-21 17:01:13 -05:00
parent 4335e69af6
commit 1903ad7189
38 changed files with 316 additions and 89 deletions

View file

@ -273,7 +273,10 @@ runtime·newstack(void)
label.sp = (uintptr)sp;
label.pc = (byte*)runtime·lessstack;
label.g = m->curg;
runtime·gogocall(&label, m->morepc);
if(reflectcall)
runtime·gogocallfn(&label, (FuncVal*)m->morepc);
else
runtime·gogocall(&label, m->morepc);
*(int32*)345 = 123; // never return
}