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

SCM Repository

[diderot] View of /branches/pure-cfg/src/compiler/IL/exit-kind.sml
ViewVC logotype

View of /branches/pure-cfg/src/compiler/IL/exit-kind.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 624 - (download) (annotate)
Tue Mar 15 21:23:04 2011 UTC (8 years, 8 months ago) by jhr
File size: 776 byte(s)
  Switch to compiler-generated initially code.
(* exit-kind.sml
 *
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 *
 * The CFG representation has different kinds of exits, depending on the
 * context and operation.
 *)

structure ExitKind =
  struct

    datatype kind
      = FRAGMENT		(* exit node in a CFG fragment that is going to be embedded in *)
				(* other code *)
      | RETURN			(* return from function/method *)
      | ACTIVE			(* normal return from update method *)
      | STABILIZE		(* stabilize in update method *)
      | DIE			(* die in update method *)

    fun toString FRAGMENT = "FRAGMENT"
      | toString RETURN = "RETURN"
      | toString ACTIVE = "ACTIVE"
      | toString STABILIZE = "STABILIZE"
      | toString DIE = "DIE"

  end

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