summaryrefslogtreecommitdiff
path: root/VM.hs
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-04-23 23:31:19 +0200
committerTom Smeding <tom.smeding@gmail.com>2019-04-23 23:31:19 +0200
commit19260ae02f1447ccd382b5c278cc5d1f22d004b3 (patch)
treedb2c143bc29c1a8a456db103b550ecd52c7a81e2 /VM.hs
parent607d918e9645cb9ea101515aae003a8d1d9fe8a7 (diff)
Possibly working lowering to isa-with-infinite-regs
Diffstat (limited to 'VM.hs')
-rw-r--r--VM.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/VM.hs b/VM.hs
index 4b0a1e0..dfa4c74 100644
--- a/VM.hs
+++ b/VM.hs
@@ -77,6 +77,7 @@ vmRunInstr info@(Info bbmap gfds datas) state@(State tmap (args, closure)) (dest
obj -> error $ "VM: Cannot call non-closure object: " ++ show obj
IAllocClo name clrefs -> return (assignRef state dest (RVClosure name (map (findRef tmap) clrefs)))
IDiscard _ -> return state
+ IFunctionEntry -> return state
vmRunTerm :: Info -> State -> Terminator -> IO (RunValue, State)
vmRunTerm info@(Info bbmap _ _) state@(State tmap _) term = case term of