emacs-diffs
[Top][All Lists]
Advanced

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

scratch/bytecode-speedup 1dca615cf9 08/11: Move a runtime interpreter ch


From: Mattias Engdegård
Subject: scratch/bytecode-speedup 1dca615cf9 08/11: Move a runtime interpreter check to ENABLE_CHECKING
Date: Tue, 11 Jan 2022 11:50:50 -0500 (EST)

branch: scratch/bytecode-speedup
commit 1dca615cf9132c59728bba6fd8f3e50498bf2a27
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Move a runtime interpreter check to ENABLE_CHECKING
    
    * src/bytecode.c (exec_byte_code): Turn error condition into eassert.
---
 src/bytecode.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/bytecode.c b/src/bytecode.c
index ae6eec09d4..635058823c 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -1570,15 +1570,10 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object 
vector, Lisp_Object maxdepth,
 
  exit:
 
+  /* The byte code should have been properly pinned.  */
   eassert (SDATA (bytestr) == bytestr_data);
-
   /* Binds and unbinds are supposed to be compiled balanced.  */
-  if (SPECPDL_INDEX () != count)
-    {
-      if (SPECPDL_INDEX () > count)
-       unbind_to (count, Qnil);
-      error ("binding stack not balanced (serious byte compiler bug)");
-    }
+  eassert (SPECPDL_INDEX () == count);
 
   Lisp_Object result = TOP;
   SAFE_FREE ();



reply via email to

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