X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fl2JIT.mli;h=3e1641daaeeba83b5705fbdd38667af53ffeca1e;hb=7e27afe6fa006ad355237ccc0695c6493ea57929;hp=0da7c4629b7227ec07636384ddfd7ea27d361046;hpb=a6c781462ddca7c25fe95789c81c2265f153203c;p=SXSI%2Fxpathcomp.git diff --git a/src/l2JIT.mli b/src/l2JIT.mli index 0da7c46..3e1641d 100644 --- a/src/l2JIT.mli +++ b/src/l2JIT.mli @@ -1,16 +1,17 @@ type jump = + NOP of unit | FIRST_CHILD of StateSet.t | NEXT_SIBLING of StateSet.t | FIRST_ELEMENT of StateSet.t | NEXT_ELEMENT of StateSet.t | TAGGED_DESCENDANT of StateSet.t * Tag.t | TAGGED_FOLLOWING of StateSet.t * Tag.t - | SELECT_DESCENDANT of StateSet.t * Ptset.Int.t * Tree.unordered_set - | SELECT_FOLLOWING of StateSet.t * Ptset.Int.t * Tree.unordered_set + | SELECT_DESCENDANT of StateSet.t * Ptset.Int.t * Tree.tag_list + | SELECT_FOLLOWING of StateSet.t * Ptset.Int.t * Tree.tag_list | TAGGED_CHILD of StateSet.t * Tag.t - | TAGGED_FOLLOWING_SIBLING of StateSet.t * Tag.t - | SELECT_CHILD of StateSet.t * Ptset.Int.t * Tree.unordered_set - | SELECT_FOLLOWING_SIBLING of StateSet.t * Ptset.Int.t * Tree.unordered_set + | TAGGED_SIBLING of StateSet.t * Tag.t + | SELECT_CHILD of StateSet.t * Ptset.Int.t * Tree.tag_list + | SELECT_SIBLING of StateSet.t * Ptset.Int.t * Tree.tag_list | TAGGED_SUBTREE of StateSet.t * Tag.t | ELEMENT_SUBTREE of StateSet.t @@ -22,11 +23,11 @@ val print_jump : Format.formatter -> jump -> unit val jump_stat_summary : Format.formatter -> unit type opcode = - CACHE - | RETURN + | RETURN of unit | LEFT of Translist.t * jump | RIGHT of Translist.t * jump | BOTH of Translist.t * jump * jump + | CACHE of unit type t = opcode Cache.Lvl2.t @@ -43,3 +44,4 @@ val add : t -> int -> StateSet.Node.t -> opcode -> unit val compile : t -> Ata.t -> Tree.t -> TagSet.elt -> StateSet.t -> opcode val get_transitions : opcode -> Translist.t +val init : unit -> unit