mirror of
https://github.com/golang/go
synced 2024-11-18 22:24:50 -07:00
runtime: move reflect trampolines into thunk file.
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/133460043
This commit is contained in:
parent
90e2e2b896
commit
6baf173b67
@ -25,32 +25,3 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$8
|
||||
MOVL CX, 4(SP)
|
||||
CALL ·callMethod(SB)
|
||||
RET
|
||||
|
||||
// Stubs to give reflect package access to runtime services
|
||||
// TODO: should probably be done another way.
|
||||
TEXT ·makemap(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_makemap(SB)
|
||||
TEXT ·mapaccess(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapaccess(SB)
|
||||
TEXT ·mapassign(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapassign(SB)
|
||||
TEXT ·mapdelete(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapdelete(SB)
|
||||
TEXT ·mapiterinit(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterinit(SB)
|
||||
TEXT ·mapiterkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterkey(SB)
|
||||
TEXT ·mapiternext(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiternext(SB)
|
||||
TEXT ·maplen(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_maplen(SB)
|
||||
TEXT ·ismapkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ismapkey(SB)
|
||||
TEXT ·ifaceE2I(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ifaceE2I(SB)
|
||||
TEXT ·unsafe_New(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newobject(SB)
|
||||
TEXT ·unsafe_NewArray(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newarray(SB)
|
||||
TEXT ·makechan(SB),NOSPLIT,$0-0
|
||||
JMP runtime·makechan(SB)
|
||||
|
@ -25,32 +25,3 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$16
|
||||
MOVQ CX, 8(SP)
|
||||
CALL ·callMethod(SB)
|
||||
RET
|
||||
|
||||
// Stubs to give reflect package access to runtime services
|
||||
// TODO: should probably be done another way.
|
||||
TEXT ·makemap(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_makemap(SB)
|
||||
TEXT ·mapaccess(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapaccess(SB)
|
||||
TEXT ·mapassign(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapassign(SB)
|
||||
TEXT ·mapdelete(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapdelete(SB)
|
||||
TEXT ·mapiterinit(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterinit(SB)
|
||||
TEXT ·mapiterkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterkey(SB)
|
||||
TEXT ·mapiternext(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiternext(SB)
|
||||
TEXT ·maplen(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_maplen(SB)
|
||||
TEXT ·ismapkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ismapkey(SB)
|
||||
TEXT ·ifaceE2I(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ifaceE2I(SB)
|
||||
TEXT ·unsafe_New(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newobject(SB)
|
||||
TEXT ·unsafe_NewArray(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newarray(SB)
|
||||
TEXT ·makechan(SB),NOSPLIT,$0-0
|
||||
JMP runtime·makechan(SB)
|
||||
|
@ -25,32 +25,3 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$8
|
||||
MOVL CX, 4(SP)
|
||||
CALL ·callMethod(SB)
|
||||
RET
|
||||
|
||||
// Stubs to give reflect package access to runtime services
|
||||
// TODO: should probably be done another way.
|
||||
TEXT ·makemap(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_makemap(SB)
|
||||
TEXT ·mapaccess(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapaccess(SB)
|
||||
TEXT ·mapassign(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapassign(SB)
|
||||
TEXT ·mapdelete(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapdelete(SB)
|
||||
TEXT ·mapiterinit(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterinit(SB)
|
||||
TEXT ·mapiterkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterkey(SB)
|
||||
TEXT ·mapiternext(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiternext(SB)
|
||||
TEXT ·maplen(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_maplen(SB)
|
||||
TEXT ·ismapkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ismapkey(SB)
|
||||
TEXT ·ifaceE2I(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ifaceE2I(SB)
|
||||
TEXT ·unsafe_New(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newobject(SB)
|
||||
TEXT ·unsafe_NewArray(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newarray(SB)
|
||||
TEXT ·makechan(SB),NOSPLIT,$0-0
|
||||
JMP runtime·makechan(SB)
|
||||
|
@ -25,32 +25,3 @@ TEXT ·methodValueCall(SB),(NOSPLIT|WRAPPER),$8
|
||||
MOVW R1, 8(R13)
|
||||
BL ·callMethod(SB)
|
||||
RET
|
||||
|
||||
// Stubs to give reflect package access to runtime services
|
||||
// TODO: should probably be done another way.
|
||||
TEXT ·makemap(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_makemap(SB)
|
||||
TEXT ·mapaccess(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_mapaccess(SB)
|
||||
TEXT ·mapassign(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_mapassign(SB)
|
||||
TEXT ·mapdelete(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_mapdelete(SB)
|
||||
TEXT ·mapiterinit(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_mapiterinit(SB)
|
||||
TEXT ·mapiterkey(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_mapiterkey(SB)
|
||||
TEXT ·mapiternext(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_mapiternext(SB)
|
||||
TEXT ·maplen(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_maplen(SB)
|
||||
TEXT ·ismapkey(SB),NOSPLIT,$-4-0
|
||||
B runtime·reflect_ismapkey(SB)
|
||||
TEXT ·ifaceE2I(SB),NOSPLIT,$0-0
|
||||
B runtime·reflect_ifaceE2I(SB)
|
||||
TEXT ·unsafe_New(SB),NOSPLIT,$0-0
|
||||
B runtime·newobject(SB)
|
||||
TEXT ·unsafe_NewArray(SB),NOSPLIT,$0-0
|
||||
B runtime·newarray(SB)
|
||||
TEXT ·makechan(SB),NOSPLIT,$0-0
|
||||
B runtime·makechan(SB)
|
||||
|
@ -76,3 +76,42 @@ TEXT runtime∕debug·freeOSMemory(SB), NOSPLIT, $0-0
|
||||
|
||||
TEXT syscall·setenv_c(SB), NOSPLIT, $0-0
|
||||
JMP runtime·syscall_setenv_c(SB)
|
||||
|
||||
TEXT reflect·makemap(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_makemap(SB)
|
||||
|
||||
TEXT reflect·mapaccess(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapaccess(SB)
|
||||
|
||||
TEXT reflect·mapassign(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapassign(SB)
|
||||
|
||||
TEXT reflect·mapdelete(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapdelete(SB)
|
||||
|
||||
TEXT reflect·mapiterinit(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterinit(SB)
|
||||
|
||||
TEXT reflect·mapiterkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiterkey(SB)
|
||||
|
||||
TEXT reflect·mapiternext(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_mapiternext(SB)
|
||||
|
||||
TEXT reflect·maplen(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_maplen(SB)
|
||||
|
||||
TEXT reflect·ismapkey(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ismapkey(SB)
|
||||
|
||||
TEXT reflect·ifaceE2I(SB),NOSPLIT,$0-0
|
||||
JMP runtime·reflect_ifaceE2I(SB)
|
||||
|
||||
TEXT reflect·unsafe_New(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newobject(SB)
|
||||
|
||||
TEXT reflect·unsafe_NewArray(SB),NOSPLIT,$0-0
|
||||
JMP runtime·newarray(SB)
|
||||
|
||||
TEXT reflect·makechan(SB),NOSPLIT,$0-0
|
||||
JMP runtime·makechan(SB)
|
||||
|
Loading…
Reference in New Issue
Block a user