File: call_last.S

package info (click to toggle)
erlang 1%3A19.2.1%2Bdfsg-2%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 175,856 kB
  • sloc: erlang: 1,414,205; xml: 397,681; ansic: 345,439; cpp: 51,554; makefile: 23,040; java: 11,480; sh: 10,128; lisp: 9,231; python: 4,853; pascal: 3,273; perl: 2,970; asm: 2,900; javascript: 700; tcl: 245; sed: 86
file content (71 lines) | stat: -rw-r--r-- 1,570 bytes parent folder | download | duplicates (10)
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
{module, call_last}.  %% version = 0

{exports, [{a,1},{b,1},{bar,1},{foo,1},{module_info,0},{module_info,1}]}.

{attributes, []}.

{labels, 13}.


{function, a, 1, 2}.
  {label,1}.
    {func_info,{atom,t},{atom,a},1}.
  {label,2}.
    {allocate,1,1}.
    {move,{x,0},{y,0}}.
    {bif,'+',{f,0},[{y,0},{integer,1}],{x,0}}.
    {'%live',1}.
    {call,1,{f,6}}.
    {bif,'+',{f,0},[{y,0},{integer,2}],{x,0}}.
    {'%live',1}.
    {call_last,1,{f,8},2}.


{function, b, 1, 4}.
  {label,3}.
    {func_info,{atom,t},{atom,b},1}.
  {label,4}.
    {allocate,1,1}.
    {move,{x,0},{y,0}}.
    {bif,'+',{f,0},[{y,0},{integer,1}],{x,0}}.
    {'%live',1}.
    {call,1,{f,6}}.
    {move,{y,0},{x,1}}.
    {move,{integer,0},{x,0}}.
    {call_ext_last,2,{extfunc,lists,seq,2},2}.


{function, foo, 1, 6}.
  {label,5}.
    {func_info,{atom,t},{atom,foo},1}.
  {label,6}.
    {move,{x,0},{x,1}}.
    {move,{atom,glurf},{x,0}}.
    {call_ext_only,2,{extfunc,erlang,put,2}}.


{function, bar, 1, 8}.
  {label,7}.
    {func_info,{atom,t},{atom,bar},1}.
  {label,8}.
    {bif,get,{f,0},[{atom,glurf}],{x,1}}.
    {bif,'+',{f,0},[{x,0},{x,1}],{x,0}}.
    {'%live',1}.
    return.


{function, module_info, 0, 10}.
  {label,9}.
    {func_info,{atom,t},{atom,module_info},0}.
  {label,10}.
    {move,{atom,t},{x,0}}.
    {call_ext_only,1,{extfunc,erlang,get_module_info,1}}.


{function, module_info, 1, 12}.
  {label,11}.
    {func_info,{atom,t},{atom,module_info},1}.
  {label,12}.
    {move,{x,0},{x,1}}.
    {move,{atom,t},{x,0}}.
    {call_ext_only,2,{extfunc,erlang,get_module_info,2}}.