diff options
| author | Stefan Monnier | 2024-03-24 18:32:25 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2024-04-28 11:58:05 -0400 |
| commit | 2fa839c1886acd4a7b6c25c50877534fe1d669bb (patch) | |
| tree | 9db25d761b2de896a902ccae32dc02c7a9dc56f4 /src/bytecode.c | |
| parent | 1e931f1c3db1588ba402d0eab60f03cc036f814a (diff) | |
| download | emacs-2fa839c1886acd4a7b6c25c50877534fe1d669bb.tar.gz emacs-2fa839c1886acd4a7b6c25c50877534fe1d669bb.zip | |
(COMPILED): Rename to CLOSURE
In preparation for the use of `PVEC_COMPILED` objects for
interpreted functions, rename them to use a more neutral name.
* src/lisp.h (enum pvec_type): Rename `PVEC_COMPILED` to `PVEC_CLOSURE`.
(enum Lisp_Compiled): Use `CLOSURE_` prefix i.s.o `COMPILED_`.
Also use `CODE` rather than `BYTECODE`.
(CLOSUREP): Rename from `COMPILEDP`.
(enum Lisp_Closure): Rename from `Lisp_Compiled`.
* src/alloc.c, src/bytecode.c, src/comp.c, src/data.c, src/eval.c,
* src/fns.c, src/lisp.h, src/lread.c, src/pdumper.c, src/print.c,
* src/profiler.c: Rename all uses accordingly.
* src/.gdbinit (xclosure): Rename from `xcompiled`.
(xcompiled): New obsolete alias.
(xpr): Adjust accordingly. Also adjust to new PVEC_CLOSURE tag name.
Diffstat (limited to 'src/bytecode.c')
| -rw-r--r-- | src/bytecode.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index de25069d94a..03443ed54ab 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -479,7 +479,7 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, | |||
| 479 | Lisp_Object *top = NULL; | 479 | Lisp_Object *top = NULL; |
| 480 | unsigned char const *pc = NULL; | 480 | unsigned char const *pc = NULL; |
| 481 | 481 | ||
| 482 | Lisp_Object bytestr = AREF (fun, COMPILED_BYTECODE); | 482 | Lisp_Object bytestr = AREF (fun, CLOSURE_CODE); |
| 483 | 483 | ||
| 484 | setup_frame: ; | 484 | setup_frame: ; |
| 485 | eassert (!STRING_MULTIBYTE (bytestr)); | 485 | eassert (!STRING_MULTIBYTE (bytestr)); |
| @@ -489,8 +489,8 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, | |||
| 489 | when returning, to detect unwind imbalances. This would require adding | 489 | when returning, to detect unwind imbalances. This would require adding |
| 490 | a field to the frame header. */ | 490 | a field to the frame header. */ |
| 491 | 491 | ||
| 492 | Lisp_Object vector = AREF (fun, COMPILED_CONSTANTS); | 492 | Lisp_Object vector = AREF (fun, CLOSURE_CONSTANTS); |
| 493 | Lisp_Object maxdepth = AREF (fun, COMPILED_STACK_DEPTH); | 493 | Lisp_Object maxdepth = AREF (fun, CLOSURE_STACK_DEPTH); |
| 494 | ptrdiff_t const_length = ASIZE (vector); | 494 | ptrdiff_t const_length = ASIZE (vector); |
| 495 | ptrdiff_t bytestr_length = SCHARS (bytestr); | 495 | ptrdiff_t bytestr_length = SCHARS (bytestr); |
| 496 | Lisp_Object *vectorp = XVECTOR (vector)->contents; | 496 | Lisp_Object *vectorp = XVECTOR (vector)->contents; |
| @@ -792,14 +792,14 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, | |||
| 792 | /* Calls to symbols-with-pos don't need to be on the fast path. */ | 792 | /* Calls to symbols-with-pos don't need to be on the fast path. */ |
| 793 | if (BARE_SYMBOL_P (call_fun)) | 793 | if (BARE_SYMBOL_P (call_fun)) |
| 794 | call_fun = XBARE_SYMBOL (call_fun)->u.s.function; | 794 | call_fun = XBARE_SYMBOL (call_fun)->u.s.function; |
| 795 | if (COMPILEDP (call_fun)) | 795 | if (CLOSUREP (call_fun)) |
| 796 | { | 796 | { |
| 797 | Lisp_Object template = AREF (call_fun, COMPILED_ARGLIST); | 797 | Lisp_Object template = AREF (call_fun, CLOSURE_ARGLIST); |
| 798 | if (FIXNUMP (template)) | 798 | if (FIXNUMP (template)) |
| 799 | { | 799 | { |
| 800 | /* Fast path for lexbound functions. */ | 800 | /* Fast path for lexbound functions. */ |
| 801 | fun = call_fun; | 801 | fun = call_fun; |
| 802 | bytestr = AREF (call_fun, COMPILED_BYTECODE), | 802 | bytestr = AREF (call_fun, CLOSURE_CODE), |
| 803 | args_template = XFIXNUM (template); | 803 | args_template = XFIXNUM (template); |
| 804 | nargs = call_nargs; | 804 | nargs = call_nargs; |
| 805 | args = call_args; | 805 | args = call_args; |
| @@ -897,8 +897,8 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, | |||
| 897 | bc->fp = fp; | 897 | bc->fp = fp; |
| 898 | 898 | ||
| 899 | Lisp_Object fun = fp->fun; | 899 | Lisp_Object fun = fp->fun; |
| 900 | Lisp_Object bytestr = AREF (fun, COMPILED_BYTECODE); | 900 | Lisp_Object bytestr = AREF (fun, CLOSURE_CODE); |
| 901 | Lisp_Object vector = AREF (fun, COMPILED_CONSTANTS); | 901 | Lisp_Object vector = AREF (fun, CLOSURE_CONSTANTS); |
| 902 | bytestr_data = SDATA (bytestr); | 902 | bytestr_data = SDATA (bytestr); |
| 903 | vectorp = XVECTOR (vector)->contents; | 903 | vectorp = XVECTOR (vector)->contents; |
| 904 | if (BYTE_CODE_SAFE) | 904 | if (BYTE_CODE_SAFE) |
| @@ -974,8 +974,8 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, | |||
| 974 | struct bc_frame *fp = bc->fp; | 974 | struct bc_frame *fp = bc->fp; |
| 975 | 975 | ||
| 976 | Lisp_Object fun = fp->fun; | 976 | Lisp_Object fun = fp->fun; |
| 977 | Lisp_Object bytestr = AREF (fun, COMPILED_BYTECODE); | 977 | Lisp_Object bytestr = AREF (fun, CLOSURE_CODE); |
| 978 | Lisp_Object vector = AREF (fun, COMPILED_CONSTANTS); | 978 | Lisp_Object vector = AREF (fun, CLOSURE_CONSTANTS); |
| 979 | bytestr_data = SDATA (bytestr); | 979 | bytestr_data = SDATA (bytestr); |
| 980 | vectorp = XVECTOR (vector)->contents; | 980 | vectorp = XVECTOR (vector)->contents; |
| 981 | if (BYTE_CODE_SAFE) | 981 | if (BYTE_CODE_SAFE) |