[movitz-cvs] CVS update: movitz/losp/muerte/run-time-context.lisp
Frode Vatvedt Fjeld
ffjeld at common-lisp.net
Tue Jul 20 08:54:48 UTC 2004
Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv19194
Modified Files:
run-time-context.lisp
Log Message:
Cleaned up most ":int 107" instances. Now, we mostly use the
semi-standardized ":int 64" which means that the value in EAX wasn't
integer. The default interrupt-handler understands this and signals
the appropriate error.
Date: Tue Jul 20 01:54:48 2004
Author: ffjeld
Index: movitz/losp/muerte/run-time-context.lisp
diff -u movitz/losp/muerte/run-time-context.lisp:1.9 movitz/losp/muerte/run-time-context.lisp:1.10
--- movitz/losp/muerte/run-time-context.lisp:1.9 Thu Jul 15 14:07:27 2004
+++ movitz/losp/muerte/run-time-context.lisp Tue Jul 20 01:54:48 2004
@@ -10,7 +10,7 @@
;;;; Author: Frode Vatvedt Fjeld <frodef at acm.org>
;;;; Created at: Wed Nov 12 18:33:02 2003
;;;;
-;;;; $Id: run-time-context.lisp,v 1.9 2004/07/15 21:07:27 ffjeld Exp $
+;;;; $Id: run-time-context.lisp,v 1.10 2004/07/20 08:54:48 ffjeld Exp $
;;;;
;;;;------------------------------------------------------------------
@@ -30,24 +30,6 @@
(or (assoc slot-name (slot-value (class-of context) 'slot-map))
(when errorp
(error "No run-time-context slot named ~S in ~S." slot-name context))))
-
-(define-compiler-macro %run-time-context-slot (&whole form &environment env slot-name
- &optional (context '(current-run-time-context)))
- (if (not (and (movitz:movitz-constantp slot-name env)
- (equal context '(current-run-time-context))))
- form
- (let ((slot-name (movitz::eval-form slot-name env)))
- (ecase (bt:binary-slot-type 'movitz::movitz-constant-block (intern (symbol-name slot-name) :movitz))
- (movitz::word
- `(with-inline-assembly (:returns :eax)
- (:locally (:movl (:edi (:edi-offset ,slot-name)) :eax))))
- (movitz::code-vector-word
- `(with-inline-assembly (:returns :eax)
- (:locally (:movl (:edi (:edi-offset ,slot-name)) :eax))
- (:subl ,movitz::+code-vector-word-offset+ :eax)))
- (movitz::lu32
- `(with-inline-assembly (:returns :untagged-fixnum-ecx)
- (:locally (:movl (:edi (:edi-offset ,slot-name)) :ecx))))))))
(defun %run-time-context-slot (slot-name &optional (context (current-run-time-context)))
(check-type context run-time-context)
More information about the Movitz-cvs
mailing list