summaryrefslogtreecommitdiff
path: root/src/mono_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-13 12:06:47 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-13 12:06:47 -0400
commitb3379c2a4d9b23c49c286b31ab24850129b5bb1e (patch)
tree20b0b499f8ea47e7b6d8f7fad4ac05d24fc4cad3 /src/mono_util.sml
parent95d278b9b8e9c314541b8251a34a32fe6deeb896 (diff)
Closure code generation almost there
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml
index 1a7c8f5b..0d5211cf 100644
--- a/src/mono_util.sml
+++ b/src/mono_util.sml
@@ -194,6 +194,11 @@ fun mapfoldB {typ = fc, exp = fe, bind} =
S.map2 (mfe ctx e2,
fn e2' =>
(ESeq (e1', e2'), loc)))
+
+ | EClosure (n, es) =>
+ S.map2 (ListUtil.mapfold (mfe ctx) es,
+ fn es' =>
+ (EClosure (n, es'), loc))
in
mfe
end