[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 49f0331 09/17: * Render all immediates as comments a
From: |
Andrea Corallo |
Subject: |
feature/native-comp 49f0331 09/17: * Render all immediates as comments at comp-debug > 2 |
Date: |
Fri, 15 May 2020 15:07:56 -0400 (EDT) |
branch: feature/native-comp
commit 49f0331f53fb9eaa2039538a983eb7b6dbcd206f
Author: Andrea Corallo <address@hidden>
Commit: Andrea Corallo <address@hidden>
* Render all immediates as comments at comp-debug > 2
* src/comp.c (emit_mvar_rval): No reason to emit only fixnums.
---
src/comp.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/comp.c b/src/comp.c
index e18bace..947da9a 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -1338,11 +1338,23 @@ emit_mvar_rval (Lisp_Object mvar)
if (!NILP (const_vld))
{
+ if (COMP_DEBUG > 1)
+ {
+ Lisp_Object func =
+ Fgethash (constant,
+ CALL1I (comp-ctxt-byte-func-to-func-h, Vcomp_ctxt),
+ Qnil);
+
+ emit_comment (
+ SSDATA (
+ Fprin1_to_string (
+ NILP (func) ? constant : CALL1I (comp-func-c-name, func),
+ Qnil)));
+ }
if (FIXNUMP (constant))
{
/* We can still emit directly objects that are self-contained in a
word (read fixnums). */
- emit_comment (SSDATA (Fprin1_to_string (constant, Qnil)));
gcc_jit_rvalue *word;
#ifdef WIDE_EMACS_INT
word = emit_rvalue_from_long_long (constant);
- feature/native-comp updated (28df049 -> d6f6353), Andrea Corallo, 2020/05/15
- feature/native-comp a335f7e 01/17: Update spill LAP machinery and compile anonymous lambdas, Andrea Corallo, 2020/05/15
- feature/native-comp acf7e12 04/17: * Rename emit_mvar_access -> emit_mvar_lval, Andrea Corallo, 2020/05/15
- feature/native-comp 3ab6a75 02/17: * Indentation fix, Andrea Corallo, 2020/05/15
- feature/native-comp 392a6f9 05/17: * Split emit_const_lisp_obj logic, Andrea Corallo, 2020/05/15
- feature/native-comp 5bf685f 03/17: * Rename emit_mvar_val -> emit_mvar_rval, Andrea Corallo, 2020/05/15
- feature/native-comp 49f0331 09/17: * Render all immediates as comments at comp-debug > 2,
Andrea Corallo <=
- feature/native-comp 27b80ae 11/17: * Better Vcomp_sym_subr_c_name_h test function + doc, Andrea Corallo, 2020/05/15
- feature/native-comp 44b0ce6 10/17: Add anonymous lambdas reload mechanism, Andrea Corallo, 2020/05/15
- feature/native-comp e351a12 14/17: Sanity check on lambdas fixups, Andrea Corallo, 2020/05/15
- feature/native-comp ff9e40e 15/17: * Add check_comp_unit_relocs, Andrea Corallo, 2020/05/15
- feature/native-comp 9a64585 16/17: * Allow for logging async compilation command line, Andrea Corallo, 2020/05/15
- feature/native-comp d6f6353 17/17: * Do not refuse to compile if a dynamic lambda is encountered, Andrea Corallo, 2020/05/15
- feature/native-comp c12831a 06/17: * Rework comp-spill-lap-function, Andrea Corallo, 2020/05/15
- feature/native-comp 2ee2fb5 07/17: * Prune now unnecessary byte-code objects, Andrea Corallo, 2020/05/15
- feature/native-comp 6eb14da 08/17: * Dump log and intemediate GCC IRs only at comp-debug 3, Andrea Corallo, 2020/05/15
- feature/native-comp e5b24b8 12/17: * Native compiler test update, Andrea Corallo, 2020/05/15