Figured out how to compile in memory beam data - #421
Conversation
| end | ||
|
|
||
| defp do_debug_info(beam, beam_path) do | ||
| with {:ok, {module, [debug_info: {:debug_info_v1, backend, data}]}} <- :beam_lib.chunks(beam, [:debug_info]), |
There was a problem hiding this comment.
Line is too long (max is 80, was 114).
|
|
||
| files = Path.wildcard(path) | ||
|
|
||
| Kernel.ParallelCompiler.files(files, [each_module: &on_module_compile(pid, &1, &2, &3)]) |
There was a problem hiding this comment.
Line is too long (max is 80, was 92).
| end) | ||
| end | ||
|
|
||
| def get_in_memory_module(pid, module) do |
There was a problem hiding this comment.
Functions should have a @SPEC type specification.
| end) | ||
| end | ||
|
|
||
| def get_in_memory_modules(pid) do |
There was a problem hiding this comment.
Functions should have a @SPEC type specification.
| end) | ||
| end | ||
|
|
||
| def put_in_memory_module(pid, module, beam) do |
There was a problem hiding this comment.
Functions should have a @SPEC type specification.
| end | ||
|
|
||
| defp walk({:for, _, generators}, state) do | ||
| defp walk({:for, _, generators}, state) when is_list(generators) do |
There was a problem hiding this comment.
Function is too complex (ABC size is 33, max is 30).
| { J.identifier("null"), state } | ||
| end | ||
|
|
||
| def compile(map, state) when is_map(map) do |
There was a problem hiding this comment.
Functions should have a @SPEC type specification.
| end | ||
|
|
||
| def compile({:for, _, _} = ast, state) do | ||
| def compile({:for, _, generators} = ast, state) when is_list(generators) do |
There was a problem hiding this comment.
Functions should have a @SPEC type specification.
| end | ||
|
|
||
| defp walk({:for, _, generators}, state) do | ||
| defp walk({:for, _, generators}, state) when is_list(generators) do |
There was a problem hiding this comment.
Function is too complex (ABC size is 32, max is 30).
| def compile(entry_modules, opts \\ []) do | ||
| opts = build_compiler_options(opts, entry_modules) | ||
| {:ok, pid} = ElixirScript.State.start_link() | ||
| alias ElixirScript.{State, Translate, FindUsedModules, FindUsedFunctions, Output} |
There was a problem hiding this comment.
Line is too long (max is 80, was 83).
|
|
||
| files = Path.wildcard(path) | ||
|
|
||
| ParallelCompiler.files(files, [each_module: &on_module_compile(pid, &1, &2, &3)]) |
There was a problem hiding this comment.
Line is too long (max is 80, was 85).
|
Ebert has finished reviewing this Pull Request and has found:
You can see more details about this review at https://ebertapp.io/github/elixirscript/elixirscript/pulls/421. |
fixes #420