diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-03-28 10:37:49 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-03-28 10:37:49 -0400 |
commit | bb8cd3211735e282f6e61a5bc9136eec616379e4 (patch) | |
tree | aa345d555a5a355451eb600cc3d8bcec5bfb9514 /src/mono_opt.sml | |
parent | beb53103cf966168842e2bc0a80d47dea2935305 (diff) |
To generate server-side source JavaScript, try both the old and new strategies; remove an unsound optimization from MonoOpt and make MonoReduce work harder to compensate
Diffstat (limited to 'src/mono_opt.sml')
-rw-r--r-- | src/mono_opt.sml | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mono_opt.sml b/src/mono_opt.sml index d05e38fd..12a811cb 100644 --- a/src/mono_opt.sml +++ b/src/mono_opt.sml @@ -357,22 +357,6 @@ fun exp e = result = ran}), loc) end - | ECase (discE, pes, {disc, result = (TFun (dom, ran), loc)}) => - let - fun doBody (p, e) = - let - val pb = MonoEnv.patBindsN p - in - (EApp (MonoEnv.liftExpInExp pb e, (ERel pb, loc)), loc) - end - in - EAbs ("x", dom, ran, - (optExp (ECase (MonoEnv.liftExpInExp 0 discE, - map (fn (p, e) => (p, doBody (p, e))) pes, - {disc = disc, - result = ran}), loc), loc)) - end - | EWrite (EQuery {exps, tables, state, query, initial = (EPrim (Prim.String ""), _), body = (EStrcat ((EPrim (Prim.String s), _), |