Commit graph

346 commits

Author SHA1 Message Date
Andrea Corallo
b3cbdfc864 add basic compilation unit into structure 2020-01-01 11:38:13 +01:00
Andrea Corallo
a647a97320 better scratch slot support 2020-01-01 11:38:13 +01:00
Andrea Corallo
ee4feb005f fix some nits 2020-01-01 11:38:13 +01:00
Andrea Corallo
88671e638b make use of ARRAYELTS macro where possible 2020-01-01 11:38:13 +01:00
Andrea Corallo
a10405386f malloc instead of static alloc into emit_ctxt_code
make it good to be reentrant
2020-01-01 11:38:13 +01:00
Andrea Corallo
d0fcb15fa9 fix comp--register-subr 2020-01-01 11:38:13 +01:00
Andrea Corallo
d0173ecd0c remove advice dependency 2020-01-01 11:38:13 +01:00
Andrea Corallo
ac08a7f26c clean-up old function relocation code 2020-01-01 11:38:13 +01:00
Andrea Corallo
694ece7722 reworking relocation mechanism to use one single table 2020-01-01 11:38:13 +01:00
Andrea Corallo
8234a62e6f stringify within macro ADD_IMPORTED 2020-01-01 11:38:12 +01:00
Andrea Corallo
26ce5664ae use safe alloca in declare_imported_func 2020-01-01 11:38:12 +01:00
Andrea Corallo
54e0b112d3 style nit 2020-01-01 11:38:12 +01:00
Andrea Corallo
a248dfe2c3 native compile interactive functions support 2020-01-01 11:38:12 +01:00
Andrea Corallo
f4de790bee add native compiled function docstring support 2020-01-01 11:38:11 +01:00
Andrea Corallo
60a81f44e4 better naming variable 2020-01-01 11:38:11 +01:00
Andrea Corallo
10adad440b update limple example 2020-01-01 11:38:10 +01:00
Andrea Corallo
6a3624eecb fix wrong enum usage into declare_function 2020-01-01 11:38:10 +01:00
Andrea Corallo
d4a5aba954 update limple comments 2020-01-01 11:38:10 +01:00
Andrea Corallo
960aa0c798 review two slot names in comp-func 2020-01-01 11:38:09 +01:00
Andrea Corallo
d901221e2b style fixes into comp.c 2020-01-01 11:38:09 +01:00
Andrea Corallo
71b363e2b3 error handling rework 2020-01-01 11:38:08 +01:00
Andrea Corallo
23874aee88 define internal-native-compiler-error as error 2020-01-01 11:38:08 +01:00
Andrea Corallo
4fe02acb6b better error handling while loading eln files 2020-01-01 11:38:08 +01:00
Andrea Corallo
95eb82644d fix symbol_subr + better naming 2020-01-01 11:38:08 +01:00
Andrea Corallo
630fcab4fc fix missing goto into load_comp_unit 2020-01-01 11:38:08 +01:00
Andrea Corallo
37989f9431 remove unsigned in favor of ptrdiff_t 2020-01-01 11:38:08 +01:00
Andrea Corallo
e97826ab84 remove native-load-history 2020-01-01 11:38:08 +01:00
Andrea Corallo
a99a3fbc40 fix jump table emission when test fn is not eq 2020-01-01 11:38:07 +01:00
Andrea Corallo
42b08f8a9a some style nits 2020-01-01 11:38:07 +01:00
Andrea Corallo
41e5c9400c require advice when compiling or loading 2020-01-01 11:38:07 +01:00
Andrea Corallo
3850be836e make compilation too robust against advices 2020-01-01 11:38:06 +01:00
Andrea Corallo
065dd0b5c6 better error signaling while loading 2020-01-01 11:38:06 +01:00
Andrea Corallo
207b151473 Vnative_units_loaded -> Vnative_load_history 2020-01-01 11:38:06 +01:00
Andrea Corallo
6a546e63d0 remove old eln before creating a new one to prevent crashes 2020-01-01 11:38:06 +01:00
Andrea Corallo
ab3f36fac2 style nit into load_comp_unit 2020-01-01 11:38:06 +01:00
Andrea Corallo
437c75cfcd add native-units-loaded 2020-01-01 11:38:06 +01:00
Andrea Corallo
76fcc2a69a emit_limple_push_handler style fix 2020-01-01 11:38:06 +01:00
Andrea Corallo
4bb671f1c6 fix emit_limple_call_ref for 0 args case 2020-01-01 11:38:05 +01:00
Andrea Corallo
9b44051ea5 make load mechanism robust against primitives advises 2020-01-01 11:38:05 +01:00
Andrea Corallo
6317f9e7b8 better error handling into load_comp_unit 2020-01-01 11:38:05 +01:00
Andrea Corallo
0f59ce58fc temporary fix subr doc field to zero 2020-01-01 11:38:05 +01:00
Andrea Corallo
8b8b8539d7 cleanup unnecessary symbol definition 2020-01-01 11:38:04 +01:00
Andrea Corallo
0cf4a9fdfc set intspec to NULL when creating subrs 2020-01-01 11:38:04 +01:00
Andrea Corallo
009089f0d6 chasing GNU style 2020-01-01 11:38:04 +01:00
Andrea Corallo
7c9a3556e3 better FUNCALL1 name 2020-01-01 11:38:04 +01:00
Andrea Corallo
37a0473721 XFIXNUM return EMACS_INT 2020-01-01 11:38:04 +01:00
Andrea Corallo
3bc77cca86 minimal error handling in load_comp_unit 2020-01-01 11:38:03 +01:00
Andrea Corallo
c33c2ef511 fix non local mechanism 2020-01-01 11:38:03 +01:00
Andrea Corallo
d5ffb49490 better comp-debug customize 2020-01-01 11:38:03 +01:00
Andrea Corallo
f9ea53442e move speed definition into lisp code 2020-01-01 11:38:03 +01:00