diff src/monoize.sml @ 109:813e5a52063d

Remove closure conversion in favor of zany fun with modules, which also replaces 'page'
author Adam Chlipala <adamc@hcoop.net>
date Sun, 13 Jul 2008 10:17:06 -0400
parents d101cb1efe55
children 3739af9e727a
line wrap: on
line diff
--- a/src/monoize.sml	Thu Jul 10 16:05:14 2008 -0400
+++ b/src/monoize.sml	Sun Jul 13 10:17:06 2008 -0400
@@ -203,15 +203,9 @@
     in
         case d of
             L.DCon _ => NONE
-          | L.DVal (x, n, t, e) => SOME (Env.pushENamed env x n t (SOME e),
-                                         (L'.DVal (x, n, monoType env t, monoExp env e), loc))
-          | L.DPage ((c, _), e) =>
-            (case c of
-                 L.CRecord (_, vs) => SOME (env,
-                                            (L'.DPage (map (fn (nm, t) => (monoName env nm,
-                                                                           monoType env t)) vs,
-                                                       monoExp env e), loc))
-               | _ => poly ())
+          | L.DVal (x, n, t, e, s) => SOME (Env.pushENamed env x n t (SOME e) s,
+                                            (L'.DVal (x, n, monoType env t, monoExp env e, s), loc))
+          | L.DExport n => SOME (env, (L'.DExport n, loc))
     end
 
 fun monoize env ds =