summaryrefslogtreecommitdiff
path: root/module/language/assembly/compile-bytecode.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-01-30 15:09:41 +0100
committerAndy Wingo <wingo@pobox.com>2010-01-31 20:40:24 +0100
commit9b7ca73cfe4d6f82811d5dac8706237690834287 (patch)
tree58d68401008f588519750cb4a7095d9ef264d1ba /module/language/assembly/compile-bytecode.scm
parentc6601f1077b079d04a377164dbe1fb70bb2b0979 (diff)
downloadguile-9b7ca73cfe4d6f82811d5dac8706237690834287.tar.gz
GLIL and assembly support for prompt compilation
* module/language/glil/compile-assembly.scm (glil->assembly): Compile <glil-prompt> appropriately. * module/language/assembly/disassemble.scm (code-annotation): * module/language/assembly/decompile-bytecode.scm (decode-load-program): * module/language/assembly/compile-bytecode.scm (write-bytecode): Assemble and disassemble `prompt' appropriately.
Diffstat (limited to 'module/language/assembly/compile-bytecode.scm')
-rw-r--r--module/language/assembly/compile-bytecode.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/language/assembly/compile-bytecode.scm b/module/language/assembly/compile-bytecode.scm
index e6fc5bc2a..f04514804 100644
--- a/module/language/assembly/compile-bytecode.scm
+++ b/module/language/assembly/compile-bytecode.scm
@@ -1,6 +1,6 @@
;;; Guile VM assembler
-;; Copyright (C) 2001, 2009 Free Software Foundation, Inc.
+;; Copyright (C) 2001, 2009, 2010 Free Software Foundation, Inc.
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@@ -141,6 +141,8 @@
((br-if-nargs-lt ,hi ,lo ,l) (write-byte hi) (write-byte lo) (write-break l))
((br-if-nargs-gt ,hi ,lo ,l) (write-byte hi) (write-byte lo) (write-break l))
((mv-call ,n ,l) (write-byte n) (write-break l))
+ ((prompt ,inline-handler? ,escape-only? ,l)
+ (write-byte inline-handler?) (write-byte escape-only?) (write-break l))
(else
(cond
((< (instruction-length inst) 0)