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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
(* Js_of_ocaml compiler
* http://www.ocsigen.org/js_of_ocaml/
* Copyright (C) 2013 Hugo Heuzard
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, with linking exception;
* either version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*)
module Flag : sig
val available : unit -> string list
val find : string -> bool
val set : string -> bool -> unit
val deadcode : unit -> bool
val globaldeadcode : unit -> bool
val optcall : unit -> bool
val shortvar : unit -> bool
val compact : unit -> bool
val inline : unit -> bool
val share_constant : unit -> bool
val staticeval : unit -> bool
val effects : unit -> bool
val genprim : unit -> bool
val strictmode : unit -> bool
val compact_vardecl : unit -> bool
val debugger : unit -> bool
val pretty : unit -> bool
val stable_var : unit -> bool
val debuginfo : unit -> bool
val excwrap : unit -> bool
val improved_stacktrace : unit -> bool
val warn_unused : unit -> bool
val inline_callgen : unit -> bool
val safe_string : unit -> bool
val use_js_string : unit -> bool
val check_magic : unit -> bool
val header : unit -> bool
val auto_link : unit -> bool
val es6 : unit -> bool
val enable : string -> unit
val disable : string -> unit
end
(** This module contains parameters that may be modified through command-line flags. *)
module Param : sig
val set : string -> string -> unit
val all : unit -> (string * string) list
val switch_max_case : unit -> int
val inlining_limit : unit -> int
val tailcall_max_depth : unit -> int
val constant_max_depth : unit -> int
type tc =
| TcNone
| TcTrampoline
(* | TcWhile *)
val tailcall_optim : unit -> tc
val lambda_lifting_threshold : unit -> int
val lambda_lifting_baseline : unit -> int
end
(****)
(** {2 Parameters that are constant across a program run} *)
(** These parameters should be set at most once at the beginning of the program. *)
val target : unit -> [ `JavaScript | `Wasm ]
val set_target : [ `JavaScript | `Wasm ] -> unit
|