Changeset 12905
- Timestamp:
- 08/29/10 18:21:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generic-class-file/abcl/src/org/armedbear/lisp/compiler-pass2.lisp
r12904 r12905 3790 3790 3791 3791 (defun compile-and-write-to-stream (class-file compiland stream) 3792 (setf (compiland-class-file compiland) class-file) 3792 3793 (with-class-file class-file 3793 3794 (let ((*current-compiland* compiland)) 3794 3795 (with-saved-compiler-policy 3795 3796 (p2-compiland compiland) 3796 3797 ;; (finalize-class-file (compiland-class-file compiland)) 3797 (finish-class (compiland-class-file compiland) stream))))) 3798 3799 (defun set-compiland-and-write-class (class-file compiland stream) 3800 (setf (compiland-class-file compiland) class-file) 3801 (compile-and-write-to-stream class-file compiland stream)) 3802 3798 (finish-class (compiland-class-file compiland) stream))))) 3803 3799 3804 3800 (defmacro with-temp-class-file (pathname class-file lambda-list &body body) … … 3819 3815 :lambda-list lambda-list))) 3820 3816 (with-open-class-file (f class-file) 3821 ( set-compiland-and-write-classclass-file compiland f))3817 (compile-and-write-to-stream class-file compiland f)) 3822 3818 (setf (local-function-class-file local-function) class-file))) 3823 3819 (t 3824 3820 (let ((class-file (make-abcl-class-file :lambda-list lambda-list))) 3825 3821 (with-open-stream (stream (sys::%make-byte-array-output-stream)) 3826 ( set-compiland-and-write-classclass-file compiland stream)3822 (compile-and-write-to-stream class-file compiland stream) 3827 3823 (setf (local-function-class-file local-function) class-file) 3828 3824 (setf (local-function-function local-function) … … 3853 3849 :lambda-list lambda-list))) 3854 3850 (with-open-class-file (f class-file) 3855 ( set-compiland-and-write-classclass-file compiland f))3851 (compile-and-write-to-stream class-file compiland f)) 3856 3852 (setf (local-function-class-file local-function) class-file) 3857 3853 (let ((g (declare-local-function local-function))) … … 3861 3857 (let ((class-file (make-abcl-class-file :lambda-list lambda-list))) 3862 3858 (with-open-stream (stream (sys::%make-byte-array-output-stream)) 3863 ( set-compiland-and-write-classclass-file compiland stream)3859 (compile-and-write-to-stream class-file compiland stream) 3864 3860 (setf (local-function-class-file local-function) class-file) 3865 3861 (let ((g (declare-object … … 3911 3907 (aver (null (compiland-class-file compiland))) 3912 3908 (cond (*file-compilation* 3913 (setf (compiland-class-file compiland) 3914 (make-abcl-class-file :pathname (funcall *pathnames-generator*) 3915 :lambda-list lambda-list)) 3916 (let ((class-file (compiland-class-file compiland))) 3909 (let ((class-file (make-abcl-class-file 3910 :pathname (funcall *pathnames-generator*) 3911 :lambda-list lambda-list))) 3917 3912 (with-open-class-file (f class-file) 3918 3913 (compile-and-write-to-stream class-file compiland f)) … … 3922 3917 +lisp-object+))) 3923 3918 (t 3924 (setf (compiland-class-file compiland)3925 (make-abcl-class-file :lambda-list lambda-list))3926 3919 (with-open-stream (stream (sys::%make-byte-array-output-stream)) 3927 (compile-and-write-to-stream (compiland-class-file compiland) 3920 (compile-and-write-to-stream (make-abcl-class-file :lambda-list 3921 lambda-list) 3928 3922 compiland stream) 3929 3923 (emit-load-externalized-object (load-compiled-function
Note: See TracChangeset
for help on using the changeset viewer.