[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.
- Re: Towards a cleaner build: cedet, (continued)
- Re: Towards a cleaner build: cedet, Eric Ludlam, 2019/06/15
- Re: Towards a cleaner build: cedet, Lars Ingebrigtsen, 2019/06/16
- Re: Towards a cleaner build: calendar, Lars Ingebrigtsen, 2019/06/14
- Re: Towards a cleaner build: calendar, Eli Zaretskii, 2019/06/14
- Re: Towards a cleaner build: calendar, Lars Ingebrigtsen, 2019/06/15
- Re: Towards a cleaner build: disass.el, Lars Ingebrigtsen, 2019/06/12
- Re: Towards a cleaner build: disass.el,
Eli Zaretskii <=
- Re: Towards a cleaner build: disass.el, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: disass.el, Stefan Monnier, 2019/06/13
- Re: Towards a cleaner build: erc.el, Stefan Monnier, 2019/06/13
- Re: Towards a cleaner build: erc.el, Lars Ingebrigtsen, 2019/06/14
- Re: Towards a cleaner build: project.el, Dmitry Gutov, 2019/06/13
- Re: Towards a cleaner build: project.el, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: project.el, Dmitry Gutov, 2019/06/13
- Re: Towards a cleaner build: project.el, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: byte-run.el, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: byte-run.el, Stefan Monnier, 2019/06/13