| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
open Names |
| 14 |
open Vmvalues |
| 15 |
open Constr |
| 16 |
|
| 17 |
module Label : |
| 18 |
sig |
| 19 |
type t = int |
| 20 |
val no : t |
| 21 |
val create : unit -> t |
| 22 |
val reset_label_counter : unit -> unit |
| 23 |
end |
| 24 |
|
| 25 |
type caml_prim = |
| 26 |
| CAML_Arraymake |
| 27 |
| CAML_Arrayget |
| 28 |
| CAML_Arraydefault |
| 29 |
| CAML_Arrayset |
| 30 |
| CAML_Arraycopy |
| 31 |
| CAML_Arraylength |
| 32 |
| CAML_Stringmake |
| 33 |
| CAML_Stringlength |
| 34 |
| CAML_Stringget |
| 35 |
| CAML_Stringsub |
| 36 |
| CAML_Stringcat |
| 37 |
| CAML_Stringcompare |
| 38 |
|
| 39 |
type instruction = |
| 40 |
| Klabel of Label.t |
| 41 |
| Kacc of int |
| 42 |
| Kenvacc of int |
| 43 |
| Koffsetclosure of int |
| 44 |
| Kpush |
| 45 |
| Kpop of int |
| 46 |
| Kpush_retaddr of Label.t |
| 47 |
| Kshort_apply of int |
| 48 |
| Kapply of int |
| 49 |
| Kappterm of int * int |
| 50 |
| Kreturn of int |
| 51 |
| Kjump |
| 52 |
| Krestart |
| 53 |
| Kgrab of int |
| 54 |
| Kgrabrec of int |
| 55 |
| Kclosure of Label.t * int |
| 56 |
| Kclosurerec of int * int * Label.t array * Label.t array |
| 57 |
|
| 58 |
| Kclosurecofix of int * int * Label.t array * Label.t array |
| 59 |
|
| 60 |
| Kgetglobal of Constant.t |
| 61 |
| Ksubstinstance of UVars.Instance.t |
| 62 |
| Kconst of structured_constant |
| 63 |
| Kmakeblock of int * tag |
| 64 |
|
| 65 |
|
| 66 |
| Kmakeswitchblock of Label.t * Label.t * annot_switch * int |
| 67 |
| Kswitch of Label.t array * Label.t array |
| 68 |
| Kpushfields of int |
| 69 |
| Kfield of int |
| 70 |
| Ksetfield of int |
| 71 |
| Kstop |
| 72 |
| Ksequence of bytecodes |
| 73 |
| Kproj of int |
| 74 |
| Kensurestackcapacity of int |
| 75 |
|
| 76 |
| Kbranch of Label.t |
| 77 |
| Kprim of CPrimitives.t * pconstant |
| 78 |
| Kcamlprim of caml_prim * Label.t |
| 79 |
|
| 80 |
and bytecodes = instruction list |
| 81 |
|
| 82 |
val pp_bytecodes : bytecodes -> Pp.t |
| 83 |
|
| 84 |
type fv_elem = |
| 85 |
FVnamed of Id.t |
| 86 |
| FVrel of int |
| 87 |
|
| 88 |
type fv = fv_elem array |
| 89 |
|
| 90 |
val pp_fv_elem : fv_elem -> Pp.t |
| 91 |
|
| 92 |
val caml_prim_to_prim : caml_prim -> CPrimitives.t |