]> git.eshelyaron.com Git - emacs.git/commitdiff
Reorder m-var slots
authorAndreaCorallo <akrl@sdf.org>
Thu, 20 Feb 2020 09:14:57 +0000 (09:14 +0000)
committerAndrea Corallo <akrl@sdf.org>
Fri, 21 Feb 2020 15:26:45 +0000 (15:26 +0000)
lisp/emacs-lisp/comp.el

index 80a542257fbefff286d2daa8057072ae1483b9b2..eabba243c2e9b18a21b33eb828998caad062143d 100644 (file)
@@ -282,18 +282,20 @@ structure.")
 
 (cl-defstruct (comp-mvar (:constructor make--comp-mvar))
   "A meta-variable being a slot in the meta-stack."
-  (slot nil :type (or fixnum symbol)
-        :documentation "Slot number if a number or 'scratch' for scratch slot.")
-  (array-idx 0 :type fixnum
-             :documentation "Array index.")
   (id nil :type (or null number)
-     :documentation "SSA number when in SSA form.")
+      :documentation "Unique id when in SSA form.")
+  ;; The following two are allocation info.
+  (array-idx 0 :type fixnum
+             :documentation "The array where the m-var gets allocated.")
+  (slot nil :type (or fixnum symbol)
+        :documentation "Slot number in the array if a number or
+        'scratch' for scratch slot.")
   (const-vld nil :type boolean
              :documentation "Valid signal for the following slot.")
   (constant nil
             :documentation "When const-vld non nil this is used for holding
  a value known at compile time.")
-  (type nil
+  (type nil :type symbol
         :documentation "When non nil indicates the type when known at compile
  time.")
   (impure nil :type boolean