diff options
| author | Russ Cox <rsc@golang.org> | 2013-02-21 17:01:13 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-02-21 17:01:13 -0500 |
| commit | 1903ad71891eb0b7b79b83145bf16b4a85dead54 (patch) | |
| tree | 227f90007ce38f2cb27a49343bb5880848856a11 /src/pkg/runtime/stack.c | |
| parent | 4335e69af64b96cd69fa876c5157d6caebde23a6 (diff) | |
| download | go-1903ad71891eb0b7b79b83145bf16b4a85dead54.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/stack.c')
| -rw-r--r-- | src/pkg/runtime/stack.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index ac00e53765..d1d5c8f3f9 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -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 } |
