aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorAndrea Corallo2020-03-15 21:44:05 +0000
committerAndrea Corallo2020-03-16 23:08:34 +0000
commit159f61baa9e374cfd17acf1a45c0d553b57b7ac9 (patch)
tree6832e7e815fb71c2f95e69af4056122ed1bbd1d8 /src/data.c
parentea8864fb672a7ff2d1da1b91885239f60e16b359 (diff)
downloademacs-159f61baa9e374cfd17acf1a45c0d553b57b7ac9.tar.gz
emacs-159f61baa9e374cfd17acf1a45c0d553b57b7ac9.zip
Trigger native compilation when loading bytecode
Introduce a first mechanism to trigger compilation when lex elc files are loaded. This is off by default and has to be better tested.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index 8a0546ce09b..173b92c5bf4 100644
--- a/src/data.c
+++ b/src/data.c
@@ -814,6 +814,8 @@ The return value is undefined. */)
814 Ffset (symbol, definition); 814 Ffset (symbol, definition);
815 } 815 }
816 816
817 maybe_defer_native_compilation (symbol, definition);
818
817 if (!NILP (docstring)) 819 if (!NILP (docstring))
818 Fput (symbol, Qfunction_documentation, docstring); 820 Fput (symbol, Qfunction_documentation, docstring);
819 /* We used to return `definition', but now that `defun' and `defmacro' expand 821 /* We used to return `definition', but now that `defun' and `defmacro' expand