aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorAndrea Corallo2020-05-03 20:55:23 +0100
committerAndrea Corallo2020-05-14 21:50:32 +0100
commit49f0331f53fb9eaa2039538a983eb7b6dbcd206f (patch)
tree58fbc5c5623ffbf2833b0dc0029f8b2c98352ac9 /src/comp.c
parent6eb14daccf0e3045fbbc858b4d3aeb3006f14e60 (diff)
downloademacs-49f0331f53fb9eaa2039538a983eb7b6dbcd206f.tar.gz
emacs-49f0331f53fb9eaa2039538a983eb7b6dbcd206f.zip
* Render all immediates as comments at comp-debug > 2
* src/comp.c (emit_mvar_rval): No reason to emit only fixnums.
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/comp.c b/src/comp.c
index e18bace6683..947da9a8e27 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -1338,11 +1338,23 @@ emit_mvar_rval (Lisp_Object mvar)
1338 1338
1339 if (!NILP (const_vld)) 1339 if (!NILP (const_vld))
1340 { 1340 {
1341 if (COMP_DEBUG > 1)
1342 {
1343 Lisp_Object func =
1344 Fgethash (constant,
1345 CALL1I (comp-ctxt-byte-func-to-func-h, Vcomp_ctxt),
1346 Qnil);
1347
1348 emit_comment (
1349 SSDATA (
1350 Fprin1_to_string (
1351 NILP (func) ? constant : CALL1I (comp-func-c-name, func),
1352 Qnil)));
1353 }
1341 if (FIXNUMP (constant)) 1354 if (FIXNUMP (constant))
1342 { 1355 {
1343 /* We can still emit directly objects that are self-contained in a 1356 /* We can still emit directly objects that are self-contained in a
1344 word (read fixnums). */ 1357 word (read fixnums). */
1345 emit_comment (SSDATA (Fprin1_to_string (constant, Qnil)));
1346 gcc_jit_rvalue *word; 1358 gcc_jit_rvalue *word;
1347#ifdef WIDE_EMACS_INT 1359#ifdef WIDE_EMACS_INT
1348 word = emit_rvalue_from_long_long (constant); 1360 word = emit_rvalue_from_long_long (constant);