diff src/especialize.sml @ 1083:2eb585274501

Stop skipping Especialization of generated functions; fix Compiler.parseUrp; expose uw_really_write(); allow more NULL arguments to uw_register_transactional()
author Adam Chlipala <adamc@hcoop.net>
date Wed, 23 Dec 2009 12:25:34 -0500
parents a4979e31e4bf
children 74f2eb3b0606
line wrap: on
line diff
--- a/src/especialize.sml	Tue Dec 22 15:29:38 2009 -0500
+++ b/src/especialize.sml	Wed Dec 23 12:25:34 2009 -0500
@@ -324,10 +324,13 @@
                                                  | _ => false) fxs'
                                orelse (IS.numItems fvs >= length fxs
                                        andalso IS.exists (fn n => functionInside (#2 (List.nth (env, n)))) fvs) then
-                                default ()
+                                ((*Print.prefaces "No" [("name", Print.PD.string name),
+                                                      ("fxs'",
+                                                       Print.p_list (CorePrint.p_exp CoreEnv.empty) fxs')];*)
+                                 default ())
                             else
                                 case (KM.find (args, fxs'),
-                                      SS.member (!mayNotSpec, name) orelse IS.member (#specialized st, f)) of
+                                      SS.member (!mayNotSpec, name) (*orelse IS.member (#specialized st, f)*)) of
                                     (SOME f', _) =>
                                     let
                                         val e = (ENamed f', loc)
@@ -340,7 +343,7 @@
                                                        [("e'", CorePrint.p_exp CoreEnv.empty e)];*)
                                         (e, st)
                                     end
-                                  | (_, true) => ((*Print.prefaces ("No(" ^ name ^ ")")
+                                  | (_, true) => ((*Print.prefaces ("No!(" ^ name ^ ")")
                                                                  [("fxs'",
                                                                    Print.p_list (CorePrint.p_exp CoreEnv.empty) fxs')];*)
                                                   default ())