diff options
| author | Pierre-Marie Pédrot | 2017-11-23 14:28:21 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-02-14 16:14:10 +0100 |
| commit | 8cd6ddb98c12b6aba002781158180ffb68aba02f (patch) | |
| tree | 82a3b98a604149a8ae984cb25986e915d9d155a5 /kernel/cemitcodes.mli | |
| parent | 41893cb647fbdce87b40acd5763e837370d61ece (diff) | |
Abstract further the type of VM bytecode compilation.
This reduces the possibility to wreak havoc while making the API nicer.
Diffstat (limited to 'kernel/cemitcodes.mli')
| -rw-r--r-- | kernel/cemitcodes.mli | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/kernel/cemitcodes.mli b/kernel/cemitcodes.mli index fee45aafd8..a2ff2d3019 100644 --- a/kernel/cemitcodes.mli +++ b/kernel/cemitcodes.mli @@ -6,18 +6,14 @@ type reloc_info = | Reloc_const of structured_constant | Reloc_getglobal of Constant.t -type patch = reloc_info * int - -(* A virer *) -val subst_patch : Mod_subst.substitution -> patch -> patch - +type patches type emitcodes val length : emitcodes -> int -val patch_int : emitcodes -> ((*pos*)int * int) list -> emitcodes +val patch : emitcodes -> patches -> (reloc_info -> int) -> emitcodes -type to_patch = emitcodes * (patch list) * fv +type to_patch = emitcodes * patches * fv val subst_to_patch : Mod_subst.substitution -> to_patch -> to_patch |
