chased problem down to forgetting setting argcount

This commit is contained in:
Danny Yoo 2011-04-10 17:43:22 -04:00
parent b51858c524
commit cbc51a93be

View File

@ -842,6 +842,9 @@
linkage
after-call)])
(append-instruction-sequences
(make-instruction-sequence `(,(make-AssignImmediateStatement
'argcount
(make-Const n))))
(compile-compiled-procedure-application (length extended-cenv)
(make-Label (StaticallyKnownLam-entry-point static-knowledge))
n
@ -871,7 +874,8 @@
(make-instruction-sequence
`(,(make-AssignPrimOpStatement 'val
(make-GetCompiledProcedureEntry))))
(make-instruction-sequence `(,(make-PopEnvironment (make-Const num-slots-to-delete)
(make-instruction-sequence `(,(make-PopEnvironment (make-SubtractArg (make-Const cenv-length-with-args)
(make-Reg 'argcount))
(make-Reg 'argcount))))
(make-instruction-sequence
`(;; Assign the proc value of the existing call frame