diff options
author | Björn Gustavsson <[email protected]> | 2015-11-09 16:14:16 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2015-11-10 13:04:56 +0100 |
commit | f51512fadee8f9ef817bfc0af8ba92a532f8def2 (patch) | |
tree | 5db16e00c0365bcc8832a100acfa7261790f69c1 /lib/jinterface/java_src | |
parent | e28fdaaad1c367bd073116fa0468ae22303189c2 (diff) | |
download | otp-f51512fadee8f9ef817bfc0af8ba92a532f8def2.tar.gz otp-f51512fadee8f9ef817bfc0af8ba92a532f8def2.tar.bz2 otp-f51512fadee8f9ef817bfc0af8ba92a532f8def2.zip |
sys_pre_expand: Clean up data structures
The handling of non-remote calls is messy, with several lookups
to determine whether the call is local or to some imported module.
We can simplify the code if we keep a map that immediately gives
us the answer. Here is an example of what the map entries look
like:
{f,1} => local
{foldl,3} => {imported,lists}
That is, there should be a local call to f/1 and a remote call
to lists:foldl/3.
Note that there is no longer any need to keep the set of all defined
functions in the state record.
Diffstat (limited to 'lib/jinterface/java_src')
0 files changed, 0 insertions, 0 deletions