emacs-devel
[Top][All Lists]
Advanced

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

Re: jit-compile: Not a byte-compiled function


From: Óscar Fuentes
Subject: Re: jit-compile: Not a byte-compiled function
Date: Fri, 14 Sep 2018 17:30:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux)

Tom Tromey <address@hidden> writes:

> Sorry, I misremembered this earlier.  I built the libjit branch again
> and tried it.  jit-compile takes a compiled object:
>
>   if (!COMPILEDP (func))                                                      
>                                                                               
>                                                        
>     error ("Not a byte-compiled function");                                   
>                                                                               
>                                                        
>
> So you need
>
> (jit-compile (symbol-function 'foo))
>
> The compiled code is stored into the bytecode vector.

Thanks, this method works.




reply via email to

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