Skip to content
Snippets Groups Projects
Commit 5e0f4923 authored by dtc's avatar dtc
Browse files

Save an instruction by using an immediate argument in

make-unwind-block and make-catch-block.
parent d725431c
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/x86/nlx.lisp,v 1.4 1997/02/22 19:19:56 dtc Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/x86/nlx.lisp,v 1.5 1997/07/11 05:24:42 dtc Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -105,8 +105,8 @@ ...@@ -105,8 +105,8 @@
(storew ebp-tn block unwind-block-current-cont-slot) (storew ebp-tn block unwind-block-current-cont-slot)
;; The code slot is unused - fill with 0. ;; The code slot is unused - fill with 0.
(storew 0 block vm:unwind-block-current-code-slot) (storew 0 block vm:unwind-block-current-code-slot)
(inst lea temp (make-fixup nil :code-object entry-label)) (storew (make-fixup nil :code-object entry-label)
(storew temp block catch-block-entry-pc-slot))) block catch-block-entry-pc-slot)))
;;; Like Make-Unwind-Block, except that we also store in the specified tag, and ;;; Like Make-Unwind-Block, except that we also store in the specified tag, and
;;; link the block into the Current-Catch list. ;;; link the block into the Current-Catch list.
...@@ -125,8 +125,8 @@ ...@@ -125,8 +125,8 @@
(storew ebp-tn block unwind-block-current-cont-slot) (storew ebp-tn block unwind-block-current-cont-slot)
;; The code slot is unused - fill with 0. ;; The code slot is unused - fill with 0.
(storew 0 block vm:catch-block-current-code-slot) (storew 0 block vm:catch-block-current-code-slot)
(inst lea temp (make-fixup nil :code-object entry-label)) (storew (make-fixup nil :code-object entry-label)
(storew temp block catch-block-entry-pc-slot) block catch-block-entry-pc-slot)
(storew tag block catch-block-tag-slot) (storew tag block catch-block-tag-slot)
(load-symbol-value temp lisp::*current-catch-block*) (load-symbol-value temp lisp::*current-catch-block*)
(storew temp block catch-block-previous-catch-slot) (storew temp block catch-block-previous-catch-slot)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment