- Timestamp:
- 08/13/10 19:19:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generic-class-file/abcl/src/org/armedbear/lisp/compiler-pass2.lisp
r12892 r12893 292 292 (defknown emit-getstatic (t t t) t) 293 293 (defun emit-getstatic (class-name field-name type) 294 (let ((index (if (null *current-code-attribute*) 295 (pool-field class-name field-name type) 296 (pool-add-field-ref *pool* class-name field-name type)))) 294 (let ((index (pool-add-field-ref *pool* class-name field-name type))) 297 295 (apply #'%emit 'getstatic (u2 index)))) 298 296 299 297 (defknown emit-putstatic (t t t) t) 300 298 (defun emit-putstatic (class-name field-name type) 301 (let ((index (if (null *current-code-attribute*) 302 (pool-field class-name field-name type) 303 (pool-add-field-ref *pool* class-name field-name type)))) 299 (let ((index (pool-add-field-ref *pool* class-name field-name type))) 304 300 (apply #'%emit 'putstatic (u2 index)))) 305 301 … … 307 303 (defknown emit-getfield (t t t) t) 308 304 (defun emit-getfield (class-name field-name type) 309 (let* ((index (if (null *current-code-attribute*) 310 (pool-field class-name field-name type) 311 (pool-add-field-ref *pool* class-name field-name type)))) 305 (let* ((index (pool-add-field-ref *pool* class-name field-name type))) 312 306 (apply #'%emit 'getfield (u2 index)))) 313 307 314 308 (defknown emit-putfield (t t t) t) 315 309 (defun emit-putfield (class-name field-name type) 316 (let* ((index (if (null *current-code-attribute*) 317 (pool-field class-name field-name type) 318 (pool-add-field-ref *pool* class-name field-name type)))) 310 (let* ((index (pool-add-field-ref *pool* class-name field-name type))) 319 311 (apply #'%emit 'putfield (u2 index)))) 320 312 … … 6881 6873 (t (setf *using-arg-array* t) 6882 6874 (setf (compiland-arity compiland) arg-count) 6883 +lisp-object-array+))))6875 (list +lisp-object-array+))))) 6884 6876 6885 6877 (defmacro with-open-class-file ((var class-file) &body body)
Note: See TracChangeset
for help on using the changeset viewer.