projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the L3JIT to the ResJIT module.
[SXSI/xpathcomp.git]
/
src
/
resJIT.mli
diff --git
a/src/resJIT.mli
b/src/resJIT.mli
index
fcf38b8
..
a870bc0
100644
(file)
--- a/
src/resJIT.mli
+++ b/
src/resJIT.mli
@@
-27,12
+27,18
@@
type opcode =
type code = Nil | Cons of State.t * opcode * code
val compile : (State.t * instr list) list -> code * bool
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
module type S =
sig
module NS : NodeSet.S
type t = NS.t array
val exec : t -> t -> t -> 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
val print : Format.formatter -> t -> unit
val var : int -> t -> t
val close : ((int*State.t, NS.t) Hashtbl.t) -> t -> t