-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmock_amd64.s
77 lines (75 loc) · 1.71 KB
/
mock_amd64.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include "textflag.h"
#include "funcdata.h"
#include "go_asm.h"
#define MAKE_WRAPPER(NAME,OFFSET) \
TEXT NAME(SB),(WRAPPER),$0 \
NO_LOCAL_POINTERS \
ADDQ $OFFSET, AX \
MOVQ (AX), DX \
MOVQ (DX), R15 \
ADDQ $16, SP \
JMP R15
MAKE_WRAPPER(·m0,0)
MAKE_WRAPPER(·m1,8)
MAKE_WRAPPER(·m2,16)
MAKE_WRAPPER(·m3,24)
MAKE_WRAPPER(·m4,32)
MAKE_WRAPPER(·m5,40)
MAKE_WRAPPER(·m6,48)
MAKE_WRAPPER(·m7,56)
MAKE_WRAPPER(·m8,64)
MAKE_WRAPPER(·m9,72)
MAKE_WRAPPER(·m10,80)
MAKE_WRAPPER(·m11,88)
MAKE_WRAPPER(·m12,96)
MAKE_WRAPPER(·m13,104)
MAKE_WRAPPER(·m14,112)
MAKE_WRAPPER(·m15,120)
MAKE_WRAPPER(·m16,128)
MAKE_WRAPPER(·m17,136)
MAKE_WRAPPER(·m18,144)
MAKE_WRAPPER(·m19,152)
MAKE_WRAPPER(·m20,160)
MAKE_WRAPPER(·m21,168)
MAKE_WRAPPER(·m22,176)
MAKE_WRAPPER(·m23,184)
MAKE_WRAPPER(·m24,192)
MAKE_WRAPPER(·m25,200)
MAKE_WRAPPER(·m26,208)
MAKE_WRAPPER(·m27,216)
MAKE_WRAPPER(·m28,224)
MAKE_WRAPPER(·m29,232)
MAKE_WRAPPER(·m30,240)
MAKE_WRAPPER(·m31,248)
MAKE_WRAPPER(·m32,256)
MAKE_WRAPPER(·m33,264)
MAKE_WRAPPER(·m34,272)
MAKE_WRAPPER(·m35,280)
MAKE_WRAPPER(·m36,288)
MAKE_WRAPPER(·m37,296)
MAKE_WRAPPER(·m38,304)
MAKE_WRAPPER(·m39,312)
MAKE_WRAPPER(·m40,320)
MAKE_WRAPPER(·m41,328)
MAKE_WRAPPER(·m42,336)
MAKE_WRAPPER(·m43,344)
MAKE_WRAPPER(·m44,352)
MAKE_WRAPPER(·m45,360)
MAKE_WRAPPER(·m46,368)
MAKE_WRAPPER(·m47,376)
MAKE_WRAPPER(·m48,384)
MAKE_WRAPPER(·m49,392)
MAKE_WRAPPER(·m50,400)
MAKE_WRAPPER(·m51,408)
MAKE_WRAPPER(·m52,416)
MAKE_WRAPPER(·m53,424)
MAKE_WRAPPER(·m54,432)
MAKE_WRAPPER(·m55,440)
MAKE_WRAPPER(·m56,448)
MAKE_WRAPPER(·m57,456)
MAKE_WRAPPER(·m58,464)
MAKE_WRAPPER(·m59,472)
MAKE_WRAPPER(·m60,480)
MAKE_WRAPPER(·m61,488)
MAKE_WRAPPER(·m62,496)
MAKE_WRAPPER(·m63,504)