Mercurial > emacs
comparison src/bytecode.c @ 1503:3ad82148830b
* bytecode.c (Fbyte_code): Use EQ to compare string_saved with
bytestr.
* bytecode.c (Fbyte_code): When metering the Bcall opcodes, make
sure the count on the symbol's `byte-code-meter' property does not
overflow.
* bytecode.c (syms_of_bytecode): Add a docstring for
byte-metering-on.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Sat, 31 Oct 1992 04:52:24 +0000 |
| parents | c1fc76b79275 |
| children | d9fc49956cd8 |
comparison
equal
deleted
inserted
replaced
| 1502:fa4c1f1c744d | 1503:3ad82148830b |
|---|---|
| 306 if (stackp < stack) | 306 if (stackp < stack) |
| 307 error ("Byte code stack underflow (byte compiler bug), pc %d", | 307 error ("Byte code stack underflow (byte compiler bug), pc %d", |
| 308 pc - XSTRING (string_saved)->data); | 308 pc - XSTRING (string_saved)->data); |
| 309 #endif | 309 #endif |
| 310 | 310 |
| 311 if (string_saved != bytestr) | 311 if (! EQ (string_saved, bytestr)) |
| 312 { | 312 { |
| 313 pc = pc - XSTRING (string_saved)->data + XSTRING (bytestr)->data; | 313 pc = pc - XSTRING (string_saved)->data + XSTRING (bytestr)->data; |
| 314 string_saved = bytestr; | 314 string_saved = bytestr; |
| 315 } | 315 } |
| 316 | 316 |
