Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/vis12/src/compiler/IL/exit-kind.sml
ViewVC logotype

Annotation of /branches/vis12/src/compiler/IL/exit-kind.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1232 - (view) (download)
Original Path: trunk/src/compiler/IL/exit-kind.sml

1 : jhr 1115 (* exit-kind.sml
2 :     *
3 :     * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     * All rights reserved.
5 :     *
6 :     * The CFG representation has different kinds of exits, depending on the
7 :     * context and operation.
8 :     *)
9 :    
10 :     structure ExitKind =
11 :     struct
12 :    
13 :     datatype kind
14 :     = FRAGMENT (* exit node in a CFG fragment that is going to be embedded in *)
15 :     (* other code *)
16 : jhr 1232 | SINIT (* strand initialization *)
17 : jhr 1115 | RETURN (* return from function/method *)
18 :     | ACTIVE (* normal return from update method *)
19 :     | STABILIZE (* stabilize in update method *)
20 :     | DIE (* die in update method *)
21 :    
22 :     fun toString FRAGMENT = "FRAGMENT"
23 : jhr 1232 | toString SINIT = "SINIT"
24 : jhr 1115 | toString RETURN = "RETURN"
25 :     | toString ACTIVE = "ACTIVE"
26 :     | toString STABILIZE = "STABILIZE"
27 :     | toString DIE = "DIE"
28 :    
29 :     end

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