From 26ad164cecc65afd9420e0ac34a15d49b02e6cbf Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Thu, 16 Oct 2014 10:00:32 +0000 Subject: finally proper stack unwind in the evaluator --- src/runtime/haskell/PGF/Binary.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/runtime/haskell/PGF/Binary.hs') diff --git a/src/runtime/haskell/PGF/Binary.hs b/src/runtime/haskell/PGF/Binary.hs index 9a74ac2f2..93214038c 100644 --- a/src/runtime/haskell/PGF/Binary.hs +++ b/src/runtime/haskell/PGF/Binary.hs @@ -168,9 +168,10 @@ instance Binary Instr where put (EVAL (ARG_VAR n) (UpdateCall b c)) = putWord8 49 >> put n >> put (b,c) put (EVAL (FREE_VAR n) (UpdateCall b c)) = putWord8 50 >> put n >> put (b,c) put (EVAL (GLOBAL id) (UpdateCall b c)) = putWord8 51 >> put id >> put (b,c) - put (DROP n l ) = putWord8 52 >> put (n,l) - put (FAIL ) = putWord8 56 - put (ADD ) = putWord8 60 + put (DROP n ) = putWord8 52 >> put n + put (JUMP l ) = putWord8 56 >> put l + put (FAIL ) = putWord8 60 + put (ADD ) = putWord8 64 instance Binary Type where put (DTyp hypos cat exps) = put (hypos,cat,exps) -- cgit v1.2.3