Module Js_of_ocaml_compiler.Driver
type optimized_result = {program : Js_of_ocaml_compiler.Code.program;variable_uses : Js_of_ocaml_compiler.Deadcode.variable_uses;trampolined_calls : Js_of_ocaml_compiler.Effects.trampolined_calls;in_cps : Js_of_ocaml_compiler.Effects.in_cps;deadcode_sentinel : Js_of_ocaml_compiler.Code.Var.t;shapes : Js_of_ocaml_compiler.Shape.t Js_of_ocaml_compiler.Stdlib.StringMap.t;
}val optimize_for_wasm :
shapes:bool ->
profile:Js_of_ocaml_compiler.Profile.t ->
Js_of_ocaml_compiler.Code.program ->
Js_of_ocaml_compiler.Driver.optimized_result
* (Js_of_ocaml_compiler.Global_flow.state
* Js_of_ocaml_compiler.Global_flow.info)val f :
?standalone:bool ->
?wrap_with_fun:[ `Iife | `Anonymous | `Named of string ] ->
?profile:Js_of_ocaml_compiler.Profile.t ->
?shapes:bool ->
link:[ `All | `All_from of string list | `Needed | `No ] ->
source_map:bool ->
formatter:Js_of_ocaml_compiler.Pretty_print.t ->
Js_of_ocaml_compiler.Code.program ->
Js_of_ocaml_compiler.Source_map.info
* Js_of_ocaml_compiler.Shape.t Js_of_ocaml_compiler.Stdlib.StringMap.tval f' :
?standalone:bool ->
?wrap_with_fun:[ `Iife | `Anonymous | `Named of string ] ->
?profile:Js_of_ocaml_compiler.Profile.t ->
link:[ `All | `All_from of string list | `Needed | `No ] ->
Js_of_ocaml_compiler.Pretty_print.t ->
Js_of_ocaml_compiler.Code.program ->
unitval from_string :
prims:string array ->
debug:Instruct.debug_event list array ->
string ->
Js_of_ocaml_compiler.Pretty_print.t ->
unitval link_and_pack :
?standalone:bool ->
?wrap_with_fun:[ `Iife | `Anonymous | `Named of string ] ->
?link:[ `All | `All_from of string list | `Needed | `No ] ->
Js_of_ocaml_compiler.Javascript.statement_list ->
Js_of_ocaml_compiler.Javascript.statement_listval name_variables :
Js_of_ocaml_compiler.Javascript.statement_list ->
Js_of_ocaml_compiler.Javascript.statement_listval configure : Js_of_ocaml_compiler.Pretty_print.t -> unit