[movitz-cvs] CVS update: movitz/losp/muerte/basic-macros.lisp
Frode Vatvedt Fjeld
ffjeld at common-lisp.net
Wed Apr 20 06:50:11 UTC 2005
Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv20241
Modified Files:
basic-macros.lisp
Log Message:
Added compiler-macro movitz-type-word-size.
Date: Wed Apr 20 08:50:10 2005
Author: ffjeld
Index: movitz/losp/muerte/basic-macros.lisp
diff -u movitz/losp/muerte/basic-macros.lisp:1.56 movitz/losp/muerte/basic-macros.lisp:1.57
--- movitz/losp/muerte/basic-macros.lisp:1.56 Tue Mar 1 00:38:03 2005
+++ movitz/losp/muerte/basic-macros.lisp Wed Apr 20 08:50:10 2005
@@ -9,7 +9,7 @@
;;;; Created at: Wed Nov 8 18:44:57 2000
;;;; Distribution: See the accompanying file COPYING.
;;;;
-;;;; $Id: basic-macros.lisp,v 1.56 2005/02/28 23:38:03 ffjeld Exp $
+;;;; $Id: basic-macros.lisp,v 1.57 2005/04/20 06:50:10 ffjeld Exp $
;;;;
;;;;------------------------------------------------------------------
@@ -401,6 +401,12 @@
(find-symbol (string slot-name) :movitz))))
(:leal ((:ecx #.movitz::+movitz-fixnum-factor+) :edi ,(- (movitz::image-nil-word movitz::*image*)))
:eax)))
+
+(define-compiler-macro movitz-type-word-size (type &environment env)
+ (if (not (movitz:movitz-constantp type env))
+ (error "Non-constant movitz-type-word-size call.")
+ (movitz::movitz-type-word-size (intern (symbol-name (movitz:movitz-eval type env))
+ :movitz))))
(define-compiler-macro movitz-type-slot-offset (type slot &environment env)
(if (not (and (movitz:movitz-constantp type env)
More information about the Movitz-cvs
mailing list