Changeset 12858
- Timestamp:
- 08/02/10 21:44:02 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generic-class-file/abcl/src/org/armedbear/lisp/compiler-pass2.lisp
r12857 r12858 109 109 (pool-get (list 9 110 110 (pool-class class-name) 111 (pool-name-and-type field-name type-name)))) 111 (pool-name-and-type field-name 112 (internal-field-ref type-name))))) 112 113 113 114 ;; (tag class-index name-and-type-index) … … 211 212 (code-add-exception-handler *current-code-attribute* 212 213 start end handler type))) 213 214 (defun !class-ref (class-name)215 "To be eliminated when all hard-coded strings are216 replaced by `class-name' structures"217 (if (or (symbolp class-name) (typep class-name 'class-name))218 (internal-field-ref class-name)219 class-name))220 214 221 215 (defstruct (instruction (:constructor %make-instruction (opcode args))) … … 505 499 (defun emit-getstatic (class-name field-name type) 506 500 (let ((index (if (null *current-code-attribute*) 507 (pool-field class-name field-name (!class-ref type))501 (pool-field class-name field-name type) 508 502 (pool-add-field-ref *pool* class-name field-name type)))) 509 503 (apply #'%emit 'getstatic (u2 index)))) … … 512 506 (defun emit-putstatic (class-name field-name type) 513 507 (let ((index (if (null *current-code-attribute*) 514 (pool-field class-name field-name (!class-ref type))508 (pool-field class-name field-name type) 515 509 (pool-add-field-ref *pool* class-name field-name type)))) 516 510 (apply #'%emit 'putstatic (u2 index)))) … … 1170 1164 (let* ((args (instruction-args instruction)) 1171 1165 (index (pool-field (first args) 1172 (second args) ( !class-ref (third args)))))1166 (second args) (third args)))) 1173 1167 (inst (instruction-opcode instruction) (u2 index)))) 1174 1168 … … 1916 1910 (defknown declare-field (t t t) t) 1917 1911 (defun declare-field (name descriptor access-flags) 1918 (let ((field (make-field name ( !class-ref descriptor))))1912 (let ((field (make-field name (internal-field-ref descriptor)))) 1919 1913 ;; final static <access-flags> 1920 1914 (setf (field-access-flags field)
Note: See TracChangeset
for help on using the changeset viewer.