X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2FresJIT.mli;h=6822b0bdc0d54d59cf6d9cdf1bb2254b4c6a737f;hb=ff99aa3de1810d5607f31f1f7597da78af72b6bf;hp=fcf38b84d398c71dae98980ffba62dbdca12ee3e;hpb=013ac87b16485acbe56f07d99a810d6364242a9e;p=SXSI%2Fxpathcomp.git diff --git a/src/resJIT.mli b/src/resJIT.mli index fcf38b8..6822b0b 100644 --- a/src/resJIT.mli +++ b/src/resJIT.mli @@ -27,12 +27,25 @@ type opcode = type code = Nil | Cons of State.t * opcode * code val compile : (State.t * instr list) list -> code * bool +type 'a update = 'a -> 'a -> 'a -> Tree.t -> Tree.node -> StateSet.t * 'a +type 'a cache = 'a update Cache.Lvl3.t +val dummy_update : 'a update +val create : unit -> 'a cache +val update : + ('a array -> 'a array -> 'a array -> Tree.node -> code -> unit) -> + 'a array cache -> Ata.t -> Translist.t -> StateSet.t -> StateSet.t -> + 'a array -> 'a array -> 'a array -> Tree.t -> Tree.node -> StateSet.t * 'a array + +val count_exec : NodeSet.Count.t array -> NodeSet.Count.t array -> NodeSet.Count.t array -> Tree.node -> code -> unit +val mat_exec : NodeSet.Mat.t array -> NodeSet.Mat.t array -> NodeSet.Mat.t array -> Tree.node -> code -> unit module type S = sig module NS : NodeSet.S type t = NS.t array val exec : t -> t -> t -> Tree.node -> code -> unit + val update : t cache -> Ata.t -> Translist.t -> StateSet.t -> StateSet.t -> + t -> t -> t -> Tree.t -> Tree.node -> StateSet.t * t val print : Format.formatter -> t -> unit val var : int -> t -> t val close : ((int*State.t, NS.t) Hashtbl.t) -> t -> t