]> git.eshelyaron.com Git - emacs.git/commitdiff
emit TAG number as comment
authorAndrea Corallo <akrl@sdf.org>
Thu, 24 Oct 2019 20:19:14 +0000 (22:19 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:59 +0000 (11:37 +0100)
lisp/emacs-lisp/comp.el

index f41731951eabda3d6b3a2960fe3356c5c535718f..cda6cdf35830711126daee4a90e848688afbe4d9 100644 (file)
@@ -796,10 +796,11 @@ the annotation emission."
                (cdr insn))))
     (comp-op-case
       (TAG
-       (cl-destructuring-bind (_TAG _label-num . label-sp) insn
+       (cl-destructuring-bind (_TAG label-num . label-sp) insn
          ;; Paranoid?
          (when label-sp
-           (cl-assert (= (1- label-sp) (comp-limplify-sp comp-pass))))))
+           (cl-assert (= (1- label-sp) (comp-limplify-sp comp-pass))))
+         (comp-emit-annotation (format "LAP TAG %d" label-num))))
       (byte-stack-ref
        (comp-copy-slot (- (comp-sp) arg 1)))
       (byte-varref