emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Towards a cleaner build: disass.el


From: Eli Zaretskii
Subject: Re: Towards a cleaner build: disass.el
Date: Thu, 13 Jun 2019 06:43:32 +0300

> From: Lars Ingebrigtsen <address@hidden>
> Date: Thu, 13 Jun 2019 02:27:32 +0200
> 
>     (if (consp obj)
>       (setq bytes (car (cdr obj))             ;the byte code
>             constvec (car (cdr (cdr obj))))   ;constant vector
>       ;; If it is lazy-loaded, load it now
>       (fetch-bytecode obj)
>       (setq bytes (aref obj 1)
>           constvec (aref obj 2)))
>     (let ((lap (byte-decompile-bytecode (string-as-unibyte bytes) constvec))
> 
> 
> But...
> 
> (multibyte-string-p (aref (byte-compile '(lambda (foo) (+ 4 foo))) 1))
> => nil
> 
> Is there any way the byte string in a byte-compiled function is
> multibyte?  It kinda looks like a NOP to me...

I suggest to remove the call and add an assertion there.  This way, we
will soon know if its a NOP or not.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]