Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /sml/trunk/src/MLRISC/gc-safety/gc-type.sig
ViewVC logotype

Annotation of /sml/trunk/src/MLRISC/gc-safety/gc-type.sig

Parent Directory Parent Directory | Revision Log Revision Log


Revision 469 - (view) (download) (as text)
Original Path: sml/branches/SMLNJ/src/MLRISC/gc-safety/gc-type.sig

1 : monnier 427 (*
2 :     * Abstract interface for GC types.
3 :     *)
4 :     signature GC_TYPE =
5 :     sig
6 :    
7 :     structure O : OBJ_TYPE (* client defined object representation type *)
8 :    
9 :     type ty = int
10 :    
11 :     datatype gctype =
12 :     CONST of int (* integer constant *)
13 :     | NONREF of O.objtype ref (* non-reference value *)
14 :     | REF of O.objtype ref (* a reference, pointer to a gc object *)
15 :     | ADD of ty * gctype * gctype (* address arithmetic + *)
16 :     | SUB of ty * gctype * gctype (* address arithmetic - *)
17 :     | BOT
18 :     | TOP
19 :    
20 :     type gcmap = gctype Intmap.intmap
21 :    
22 :     exception GCTYPE
23 :    
24 :     val toString : gctype -> string
25 :     val mapToString : gcmap -> (int -> string)
26 :    
27 :     (*
28 :     * Annotations.
29 :     *)
30 : monnier 469 val GCMAP : gcmap Annotations.property
31 :     (* gc-map for a program (per cluster) *)
32 :     val GCSAFEPOINT : Annotations.flag (* marks all gcpoints (per block) *)
33 : monnier 427
34 :     end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0