emacs-diffs
[Top][All Lists]
Advanced

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

scratch/comp-static-data bcc739d73d 5/9: Statically emit self evaluating


From: Vibhav Pant
Subject: scratch/comp-static-data bcc739d73d 5/9: Statically emit self evaluating bytecode vectors during native comp.
Date: Tue, 20 Dec 2022 11:29:41 -0500 (EST)

branch: scratch/comp-static-data
commit bcc739d73dc7f22549d91db1665536e5ed8dd198
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>

    Statically emit self evaluating bytecode vectors during native comp.
    
    * src/comp.c (emit_comp_lisp_obj): Support emitting static
    variables for vector forms that represent bytecode functions.
---
 src/comp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/comp.c b/src/comp.c
index 78e10baf9d..d20fca4336 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -3044,7 +3044,7 @@ emit_comp_lisp_obj (Lisp_Object obj,
          expr.expr.with_type.init = lisp_float;
          expr.expr.with_type.type = Lisp_Float;
        }
-      else if (VECTORP (obj) || RECORDP (obj))
+      else if (VECTORP (obj) || RECORDP (obj) || COMPILEDP (obj))
        {
          ptrdiff_t size = ASIZE (obj);
          if (size & PSEUDOVECTOR_FLAG)



reply via email to

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