diff options
author | Björn Gustavsson <[email protected]> | 2016-05-30 12:26:28 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-05-30 12:26:28 +0200 |
commit | c4ac159d055e36c0c7096f5038cc51c291b72771 (patch) | |
tree | 54be49e65d3e18bd50dcbd4e6166d6aae8c9556c /lib/compiler/src/beam_disasm.hrl | |
parent | 49ed8a5a1cddc806dd520aaa79e1a089194566c1 (diff) | |
parent | d6d52477cdd6efefd3d3d93f4433b2b1f4e52ce7 (diff) | |
download | otp-c4ac159d055e36c0c7096f5038cc51c291b72771.tar.gz otp-c4ac159d055e36c0c7096f5038cc51c291b72771.tar.bz2 otp-c4ac159d055e36c0c7096f5038cc51c291b72771.zip |
Merge branch 'kostis/beam_disasm-entry-type/PR-1072'
* kostis/beam_disasm-entry-type/PR-1072:
Declare the type of function entry points
Export label() type
Diffstat (limited to 'lib/compiler/src/beam_disasm.hrl')
-rw-r--r-- | lib/compiler/src/beam_disasm.hrl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compiler/src/beam_disasm.hrl b/lib/compiler/src/beam_disasm.hrl index e18214644f..d968cd9587 100644 --- a/lib/compiler/src/beam_disasm.hrl +++ b/lib/compiler/src/beam_disasm.hrl @@ -22,7 +22,9 @@ %% the system (e.g. in the translation from Beam to Icode). %% -%% XXX: THE FOLLOWING TYPE DECLARATION DOES NOT BELONG HERE... +%% XXX: THE FOLLOWING TYPE DECLARATION DOES NOT BELONG HERE. +%% IT SHOULD BE MOVED TO A FILE THAT DEFINES (AND EXPORTS) +%% PROPER TYPES FOR THE SET OF BEAM INSTRUCTIONS. %% -type beam_instr() :: 'bs_init_writable' | 'fclearerror' | 'if_end' | 'remove_message' | 'return' | 'send' | 'timeout' @@ -34,7 +36,7 @@ -record(function, {name :: atom(), arity :: byte(), - entry, %% unused ?? + entry :: beam_lib:label(), %% unnecessary ? code = [] :: [beam_instr()]}). -record(beam_file, {module :: module(), |